Command substring

The command substring is used to separate a string into substrings according to a delimiter.


  1. character [string]
    String delimiter.
  2. index [integer]
    Delimiter's position, with 0 being the first.
  3. variabledestination [integer]
    Variable that will store the substring.
  4. variablesource [string]
    Text that will be separated.
  5. 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.