Click to expand/collapse this hidden textCopy(S:string; Index, Count: number): string;

Function

COPY returns a substring containing COUNT characters starting at S[INDEX]. If INDEX is larger than the length of S, then COPY returns an empty string or array.
If COUNT specifies more characters than are available, only the characters from S[INDEX] to the end of S are returned.

Click to expand/collapse this hidden textStrToIntDef(S: string; Default: number): number;

Function

STRTOINTDEF converts the string S (which represents a number in either decimal or hexadecimal notation) into a number.
If S does not represent a valid number, STRTOINTDEF returns the DEFAULT number.

Example Column example

See also STRTOFLOATDEF and INTTOSTR functions.

Click to expand/collapse this hidden textStrToFloatDef(S: string; Default: number): number;

Function

STRTOFLOATDEF converts the string S (representing a decimal number) to a floating-point number.
If S cannot be converted the DEFAULT is returned.

See also STRTOINTDEF and INTTOSTR functions.

Click to expand/collapse this hidden textDelete(var S: string; Index, Count:number);

Procedure

DELETE removes a substring, COUNT characters long, from string S starting with S[INDEX].
If INDEX is larger than the length of the string or less than 1, then no characters are deleted.
If COUNT specifies more characters than remain starting at the INDEX, then DELETE removes the rest of the string.
If COUNT is less than or equal to 0, no characters are deleted.

Click to expand/collapse this hidden textPos(Substr: string; S: string): number;

Function

POS searches for a substring SUBSTR within a string S. POS is case-sensitive.
If SUBSTR is found then a number value that is the index of the first character of SUBSTR within S is returned.
If SUBSTR is not found then POS returns zero.

Click to expand/collapse this hidden textTrim(const S: string): string;

Function

TRIM removes whitespace – leading and trailing – from the string expression specified by S.

Example Table example: Variable data

Click to expand/collapse this hidden textLowerCase(const S: string): string;

Function

LOWERCASE returns string S converted to lower-case.

See also UPPERCASE function, below.

Click to expand/collapse this hidden textUpperCase(const S: string): string;

Function

UPPERCASE returns string S converted to upper-case.

See also LOWERCASE function, above.

Click to expand/collapse this hidden textChar(N:number):string;

Function

CHAR constructs a string consisting of a single wide character
$ffff>=N<=0

See also ORD function, below.

Click to expand/collapse this hidden textOrd(const S: string): number;

Function

ORD returns the ordinal value of the first wide character of the string specified by S. The result will be in the range 0..$ffff

See also CHAR function, above.

Click to expand/collapse this hidden textSplit(Source,Separator:string;var LX:list);

Procedure

SPLIT procedure splits the SOURCE string into a number of elements delimited by the SEPARATOR string. The elements are returned in the list specified by the LX parameter. The previous contents of the list are lost.
If the SEPARATOR does not exist in the SOURCE string then the list will contain a single entry consisting of the entire SOURCE string.

Example split('alpha/beta/gamma','/',LX);

See also READCSV procedure.