Returns the nth substring of a search string.
STRGET(num, "srchstr", "delimit")
|
num |
- |
An integer. The number of the substring to return. |
|
"srchstr" |
- |
A string. The search string to search in. |
|
"delimit" |
- |
Optional. A string specifying the characters used to separate srchstr into individual substrings. Defaults to a space delimiter character. |
A string.
strget(2, "YOR:12.3 XINC:1.0 YREF:120.0")
returns: XINC:1.0 because that is the second substring.
By default, substrings are delimited by spaces. Set "delimit" to specify specific delimiter characters.
strget(2, "YOR:12.3 XINC:1.0 YREF:120.0",":")
returns: 12.3 XINC because the : is the separator character.