"right" (string::right)
Returns a substring that contains the n rightmost characters of the string.
Synopsis
string string.right(int n);
Parameters
| Parameter | Description |
|---|---|
| n | Number of characters |
Description
Returns a substring that contains the n rightmost characters of the string. The entire string is returned if n is greater than or equal to length(), or less than zero.
Example
main()
{
string s = "Control";
DebugN(s.right(3)); // "rol"
}
Console output:
WCCOAui1:["rol"]
Assignment
String
