STRGET

Purpose:

Returns the nth substring of a search string.

Syntax:

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.

Returns:

A string.

Example:

strget(2, "YOR:12.3 XINC:1.0 YREF:120.0")

 

returns: XINC:1.0 because that is the second substring.

Example:

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.

See Also:

STRCAT

STRCMP

STREXTRACT

STRFIND

STRMATCH

STRREPLACE