How Can We Help?
< All Topics
Print

$rightjustify

Right-justifies a character string.

Syntax

$rightjustify(string)

Parameters

stringa character string, or an expression that evaluates to a character string

Return Value

Character string, consisting of string right-justified in a space $length(string) characters long. Trailing blanks in string are ignored.

Example

$rightjustify("abcde ")

Evaluates to ” abcde”.

$rightjustify(var1)

Evaluates to ” 3″ if var1 is a LONGINT variable whose value is 3 (occupies 12 character spaces).

See Also

$center

$leftjustify

About Character Literals

About Functional Expressions

Conversion Between Data Types

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish