RIGHT
Return a number of characters from the end (right hand side) of a string.
WebVue support - Yes.
Syntax
StrVal = RIGHT(Input, N);
Return type: STR.
Argument |
Meaning |
Input |
The string to be manipulated. Type STR. |
N |
The number of characters to return. Any numeric type. |
Execution
If N is greater than the length of the string, the entire string is returned.
Example
SUB Main()
DIM strResult as Str;
DIM strString as Str;
strString = "Hello, World!";
strResult = Right( strString ,6); 'take the last 6 characters
PRINT("Result: ", strResult );
'Displays "Result: World!"
END SUB