SubStr

Function:

Returns a substring of a given string.

Syntax:

SubStr(String, Start, Length) where Start is the starting position in the string and Length is the length of the returned string.

Example:

Let A = "This is a string!"

; B results in the text "string"

Let B = SubStr(%%A%%, 11, 6)

Message "%%B%%"

Notes:

NEW - The SubStr command will now recognize commas as part of a string if the string is enclosed within quotes.

 

 EXAMPLE:

 Let A = "Who, what, when, why, and where."

Let B = SubStr("%%A%%", 6, 4)

 Message "But we don't know %%B%%"