Right$ – String Management Function**





Right$ Function


Description

The Right$ function returns the specified number of characters in a string starting from the right.

Syntax

var$ = Right$(, )

Parameters

<string$>: string from which to extract characters.

<numcar>: numeric, number of characters to extract from <string$>.

Return Value

var$: string, return value containing the extracted characters. If <numcar> is negative or 0, an empty string is returned. If <numcar> is greater than or equal to the number of characters of <string$>, the entire string is returned.

See Also

Examples


a$ = Right$("example", 3) ' Returns "ple" in a$
a$ = Right$("example", 0) ' Returns "" in a$