Programmer Guide/Command Reference/SUBSTR: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)

Revision as of 18:31, 18 November 2010

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