The command substring is used to separate a string into substrings according to a delimiter.
- character [string]
- index [integer]
Delimiter's position, with 0 being the first.
- variabledestination [integer]
Variable that will store the substring.
- variablesource [string]
Text that will be separated.
- variablereturn [integer]
Variable that will store the return of the command. If nothing is found will return -1.
In the example above the command substring will separate the string stored in the variable sText according to the delimiter and store the substring defined by index 0 in the variable sReturn.