Primitives can be of several types.
Number
Number-primitive variables can only contain decimal digits.
Decimal point position is implied and specified separately using the Decimals property.
Length is calculated from the sum of the number of digits in the integer part and the number of decimal places.
They are limited to a maximum length of 18 (maximum size of 2^18).
Signed Number
Signed number-primitive variables are the similar to number-primitive variables, except that they are signed.
String
String-primitive variables can contain any sequence of the following:
Printable characters from the ASCII character set.
Embedded escape sequences representing non-printable characters in @xx@ notation, where “xx” is a hexadecimal representation of the binary character value.
Embedded escape sequences representing non-printable characters in \x, where '\x' represents either a control-character equivalent such as '\n' for newline, or a hexadecimal equivalent of the binary representation.
They are limited to a maximum length of 9999 characters.
Boolean
Boolean-primitive variables can be used in place of a logical expression in “If” (DoWhen) statements.
The following assignments are valid:
bool := “Y”
bool := “N”
bool := “Yes”
bool := “No”
bool := true
bool := false
But only true and false might be used in DoWhen/If statements.
Date
Date-primitive variables can only contain decimal digits.
They are comprised of two digits each for the month, day, year, and optionally the century. The Date Format property determines the order of these date units – IN(ternational), UK, and US are represented as (CC)YYMMDD, DDMM(CC)YY, and MMDD(CC)YY respectively.
The date format is only validated when the variable accepts input in a user interface, or when it is used as the input date of a DateConvert logic command.
Date-primitive variables are of a fixed length of 6 characters, or 8 characters if the date format includes the century.
Wide String
Wide string-primitive variables can contain any sequence of double-byte characters as a Unicode string.
They are limited to a maximum length of 2047 characters.
Refer to Variable Properties for properties applicable to Variable.
User Defined Classes
User defined classes comprises the structure of the items to be stored in a list.