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