Returns a new string containing a subset of the elements from the original string . The subset is specified using the arguments iLow and iHigh, which are inclusive indices. The indices are clamped to the respective ends of the string , if out of range. If iLow is greater than iHigh, returns the empty string . Note that the indices are 1-based.
subString ( str As String, iLow As String, iHigh As String ) As String
Argument | Type | Description |
---|---|---|
str | String | original string |
iLow | Integer | starting index |
iHigh | Integer | ending index |
Intent >subString("To be or not to be", 1, 5) --> "To be"
Intent >subString("To be or not to be", 10, 1000) --> "not to be"
Intent >subString("To be or not to be", 1000, 1) --> ""