RIGHT |
Top Previous Next |
×V3.0.2Ø
Syntax - Right <variable name> <source value> <length> Where: <variable name> is the user defined name that is assigned to the variable. <source value> is a literal string or a variable that contains a literal string. <length> is an integer or a variable that contains an integer.
Description: This command is used to copy the number of characters defined by <length> from the end (or right side) of the source value and store the result in the variable specified by <variable name>.
NOTE: If the length specified is greater than the length of the source value, then the entire source value will be copied into the destination variable.
Sample: The following statement uses Right command to retrieve the last characters from the given ID number and stores the result in the CheckDigit variable. Right CheckDigit ID 1
|