List of expression elements / Character string operators |
The [] (square braces) extract a substring.
char-variable [ start [, end ] ]
The [] (square braces) notation following a CHAR or VARCHAR variable extracts a substring from that character variable.
The start and end arguments can be expressed in bytes or characters, depending on the length semantics used in your programs.
MAIN DEFINE s CHAR(10) LET s = "abcdef" DISPLAY s[3,4] END MAIN