BBjString::substring
Description
In BBj 7.0 and higher, this method returns a string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string.
Examples:
"unhappy".substring(2) returns "happy"
"Harbison".substring(3) returns "bison"
"emptiness".substring(9) returns "" (an empty string)
Syntax
Return Value |
Method |
---|---|
String |
substring(int beginIndex) |
String |
substring(int beginIndex, int endIndex) |
Parameters
Variable |
Description |
---|---|
beginIndex |
The begin index, inclusive. |
endIndex |
The end index, exclusive. |
Return Value
Returns the specified substring.
Remarks
None.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.