RIGHT

Top  Previous  Next

Action

Return a specified number of rightmost characters in a string.

 

 

Syntax

var = RIGHT(var1 ,st )

 

 

Remarks

var

The string that is assigned.

Var1

The sourcestring.

st

The starting position.

 

All strings must be of the same data type, internal or external.

 

See also

LEFT , MID

 

 

Example

Dim s As XRAM String * 15, z As XRAM String * 15

s = "ABCDEFG"

z = Right(s,2)

Print z                                'FG

End