Right$ (Function)

Fetches the specified character string length from the right of the character string.

Right$ (<Character String>,<No. of Characters>) 

Parameters
<Character String>
The Character String that will be extracted (character type).
<No. of Characters>
The size of characters to be extracted (integer type).

Return Value
Returns the value of the character type string.
The content of the value is the extracted character string.

Description
Fetches the character string with the length of characters specified by <No. of Characters> from the right side (the last part) of the specified <Character String>.
Specify the number of characters to extract from the character string in <No.of Characters> as a numeric value.
The <No. of Characters> must be a value of 1 or more.
When the <No. of Characters> exceeds the length of the <Character String>, the <Character String> is returned as is.

Example
Get the last 3 characters of the character string, "OMRON".
      CHARA$=Right$("OMRON",3)

The result is as follows:
CHARA$="RON"