Temporarily converts a string from Unicode to DBCS based on the current locale, then returns the specified number of bytes from the end of the string.
RightA (string, n)
Argument |
Description |
---|---|
string |
The string you want to search |
n |
A long whose value is the number of bytes you want returned from the right end of string |
String. Returns the rightmost n characters in string if it succeeds and the empty string (“”) if an error occurs. If any argument’s value is null, RightA returns null. If n is greater than or equal to the length of the string, RightA returns the entire string. It does not add spaces to make the return value’s length equal to n.
RightA replaces Right in DBCS environments in PowerBuilder 9. In SBCS environments, Right, RightW, and RightA return the same results.