SUBSTR

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 15:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Navigation menu

Personal tools