right$

Syntax

substring = RIGHT$(text, number)

Arguments

text, substring: text

number: integer

Meaning

Returns the right part of a character string. If number is greater than length of text, the result will be equal to text.

Example

substring = right$('ABCdefGH', 3)
substring2 = right$('AFDFD', 0)

Result

substring is 'fGH'.
substring2 is empty.

 

See also

LEFT$