LJustify

Description

Left justifies characters in a string of a specified length.

Returns

A copy of a string, left-justified.

Category

Syntax

LJustify(string, length)

See also

Parameters

Parameter

Description

string

A string or a variable that contains one

length

Length of field in which to justify string

Example

<cfscript>
    string="Hello CFFiddle, how are you?"
    length=50
    writeOutput(LJustify(string,length))
</cfscript>

Output

Hello CFFiddle, how are you?

Adobe logo

Sign in to your account