RJustify

Description

Right justifies characters of a string.

Returns

A copy of a string, right-justified in the specified field length.

Category

Display and formatting functionsString functions

Function syntax

RJustify(string, length)

See also

CJustifyLJustify

Parameters

Parameter

Description

string

A string enclosed in quotation marks, or a variable that contains one.

length

A positive integer or a variable that contains one. Length of field in which to justify string.

Example

<cfscript>
    string="The quick brown fox jumps over the lazy dog"
    length=20
    writeOutput(RJustify(string,length))
</cfscript>

 Adobe

Get help faster and easier

New user?