up previous next
substring    --    substring of a string


Syntax
substring(S: STRING, StartPosn: INT, Length: INT): STRING

Description
This function extracts a substring (with given start posn and length) from a string. It is an error if the start posn is not inside the string, and also if the length is negative.

Example
/**/  substring("abcdef", 2, 3);
bcd

See Also