[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
JUSTRIGHT()
Moves characters from the end of a string to the beginning
------------------------------------------------------------------------------
Syntax
JUSTRIGHT(<cString>,[<cCharacter|nCharacter>])
--> cString
Arguments
<cString> [@] Designates the string that is processed.
<cCharacter|nCharacter> Designates the character that is moved from
the end of the <cString> to the beginning. The default value is a
space, CHR(32).
Returns
The processed <cString> is returned.
Description
JUSTRIGHT() moves the characters specified in <cCharacter| nCharacter>
from the end of a character string to the beginning. Then the remaining
text in the character string is right justified, without affecting the
length.
Notes
. If the <cCharacter|nCharacter> parameter is not specified,
spaces are automatically moved.
. The return value for this function can be suppressed by
implementing CSETREF() to save room in working memory.
Examples
. Move the blanks:
? JUSTRIGHT("123 ") // " 123"
. Move the "." character:
? JUSTRIGHT("123..", ".") // "..123 "
See Also:
JUSTLEFT()
CSETREF()
Introduction
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson