• Reference Guide


substr(str, pos)
substr(str, pos, n)
Returns n characters from the string str beginning at the position pos. The characters are indexed from 0. If the sum pos+n exceeds the length of the string or n is not specified, the entire rest of the string is returned. If n is negative, an empty string is returned. The type of str is a Binary, String, Text or Rich_string. The return value is of the same type as str.

See Also