RIGHT$

Format

string1 = RIGHT$(string2,number1)

Description

This statement will copy the rightmost number1 characters from string2 to string1.

Example

A$=RIGHT$("RED RIDING HOOD",4)
After the execution of the above statement, the variable A$ will contain the string "HOOD".

See Also

  • MID$
  • LEFT$