Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

Right( )

Action: Returns a specified number of characters from the right side of a string.
Syntax: RIGHT ("string", length)
Parameters: String

String expression from which the rightmost characters are returned.


Numeric expression indicating how many characters to return. If 0, a zero-length string is returned. If greater than or equal to the number of characters in string, the entire string is returned.

Returns: The substring requested.
See Also: InStr( ), InStrRev( ), Left( ), SubStr( )

; get the last 2 chars of the user's ID
$x = RIGHT(@USERID, 2)