SubStr
Use this function to extract part of a string.
where:
- SymName is the name of a symbol.
- String is a character string enclosed in double quotation marks.
- StartChar is the first character of the string that you would like to extract.
- NumChars is the number of characters that you would like to extract.
Copy
Code example
CREATE VARIABLE StrTemp1 AS STRINGVariable = SUBSTR ("SourceString",StartNum,Length)SET VARIABLE StrTemp1 = SUBSTR ("StringTest",2,4)
// StrTemp1 will equal "trin" (without the double quotation marks)