Right                                                                                                         Function

 

RIGHT(theString as String, num as Integer)

 

Description

Returns the rightmost num characters of theString. If theString has less than num characters, the result will be less than num characters.

 

Example

Dim result as String

Result=Right("John Doe", 6) 'would set result to "hn Doe"