Eaglecode notes (1)

Source: Internet
Author: User

Peoplecode variable names start with "&". The default local variable type isAny. When the returned data type is unknown, the PeopleTools determines its type.

 

LocalAny& Example_any;
Local string & test;
Local string & Test2;

 

& Example_any = "test ";

& Example_any = & Test | ''| & Test2;

 

/* % Date: Today */

& Example_any = % date;

 

Boolean:True (1) or false (0 ).

 

Local Boolean & B _test;
& B _test = false;

 

Date:YYYY-MM-DD

Datetime:YYYY-MM-DD-HH.MI.SS.SSSSSS

Time:Hhmiss

 

Number:Integer or decimal number

 

& Number_example1 = 456;
& Number_example2 = 456.78;
& Number_example3 = 0.45678;
& Number_example4 =-456.78;

 

Float:Floating Point decimal point

 

Integer:Integer, a 32-bit signed number. The division operation in peoplecode does not use an integer even if it is defined as an integer, but uses a floating point number.

 

Local integer & sample1, & sample2, & sample3;
& Amp; sample1 = 44;
& Amp; sample2 = 11000;
& Sample3 =-2200;

 

String:You can use single or double quotation marks.

 

& Sample_string = "Now is the time for all good men to come to the aid of their country ";
& Sample_string2 = "Now is the time for all good men to come to the aid of their country 'string within a string 'Declaration ";
& Sample_string3 = "Now is the time for all good men to come to the aid of their country" Double quoted string within a string "Declaration ";

 

Object:

Lelecode data buffer access types:Field, record, row, rowset.

Lelecode display data types:Analyticgrid, chart, grid, gridcolumn, page

Peoplecode Internet script data types:Cookie, request, and response

Lelecode miscellaneous data types:Aesection, analyticinstance, array, crypt, exception, file, interlink, bidocs, javaobject (can only be declared as type local), message, mcfiminfo, optengine, postreport, processrequest, rowsetcache, soapdoc, SQL, syncserver, transformdata (can only be declared as type local), xmldoc, and xmlnode (objects can only be declared as type local)

Global apiobject data type objects:Session, psmessages collection, psmessages, all tree classes (trees, tree structures, nodes, levels, and etc.), query classes.

Local apiobject data type objects:Meta SQL, Meta HTML, system variables, and rowset

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.