Returns a sub string from the text. The sub string starts at the specified character position and is optionally limited to the specified length.
int SubStr(string text; int startIndex; [int length])
text |
The string to retrieve the sub string from. |
startIndex |
The zero-based starting character position for the sub string. |
length |
Optional limitation in length of the sub string. |
Example
SubStr("Ice is cold";4;2)
Returns "is".