3.5.5.22 Right

Description

This function returns the rightmost n characters from the string.

Syntax

string Right(string str$, int n)$

Parameters

str

is the string you want to extract.

n

is the number of characters you want to extract.

Return

Returns rightmost n string.

Example

string str1$ = "abcde";
string strRight$ = Right(str1$,3)$;
strRight$ = ; //should return cde

See Also

Left