subString()

subString() is used to retrieve a sub-string from a string variable value. The two arguments required by the method are integers that identify the beginning and the ending positions of the sub-string. If the specified positions are invalid, the method will return NULL.

In the extract below, subString() will return a sub-string long which begins at the 3rd and ends at the 6th position:

DEFINE substr STRING

CALL string_val.Append("A long string")

LET substr = string_val.subString(3,6)

 

Contact Us

Privacy Policy

Copyright © 2026 Querix, (UK) Ltd.