Whatever message this page gives is out now! Go check it out!

RJustify

Last update:
May 18, 2026

Description

Right justifies characters of a string.

Returns

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

Category

Function syntax

RJustify(string, length)

See also

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>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page