SUBSTR
From STX Wiki
Jump to navigationJump to search
SUBSTR
var := SUBSTR string [ start [ length ]]
-> var = 'string[start .. start+length-1]'
Get a substring of the string string. If no length is specified all characters from start to the end of the string are copied to var
. If neither
- string
- The string from which to retrieve the substring.
- start
- The zero-based index of the first character of the substring. The default value is
0
.
- length
- The length of the substring. If length is not specified then the length of the string minus start is used.
Remove the first character of a string.
#str := substr '$#str' 1