Previous Up Next

Returns a sub-string of the string passed in argument. The first integer gives the start position of the sub-string, the first character being in position 0, and the second integer gives the size. For example, substr "abcdef" 2 3 returns the "cde" string.

S substr (
S _string_
I _position_
I _length_

any string
position of sub-string to extract
expected length of sub-string
Return value