Right


Function Right( string, count )


Returns rightmost count characters from string.


Syntax a = Right( "Hello There", 5 )


Remarks

Right returns a substring count characters long, from the right (end) of the string parameter.


See Also:


Left

Mid

String Functions


Example Script


NUMBER x

STRING s1 = "Hello There"


FOR x = 1 TO LEN(s1)

PRINT RIGHT(s1,x)

NEXT x


Script Output


r

er

her

Ther

Ther

o Ther

lo Ther

llo Ther

ello Ther

Hello Ther

Hello There