string substring(string,int,int)
Return Type: string
Parameters: string input, int iStart, int iEnd
Description:
This function extracts characters from a string and puts them into a new
string. The characters extracted are the characters between iBegin and
iEnd indices, inclusive. Note that the indices are zero-based. The original
string is not modified.
Example
Code |
1 >>string
s = "Phantom";
2 >>disp(substring(s, 2, 4));
ant |