Project

General

Profile

Previous Up Next

substr
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_
)
Parameters

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

sub-string