Returns a number of characters from the right-hand side of a string.
StringRight ( "string", count )
Parameters
string | The string to evaluate. |
count | The number of characters to get. |
Return Value
Returns a string containing the rightmost count characters of the string.
Remarks
If count exceeds string length or if count is negative, the entire string is returned.
Related
String, StringInStr, StringLeft, StringLen, StringLower, StringMid, StringTrimLeft, StringTrimRight, StringUpper
Example
$var = StringRight("I am a string", 3)
MsgBox(0, "Rightmost 3 characters are:", $var)