User Guide Cancel

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)
LJustify(string, length)
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>
<cfscript> string="Hello CFFiddle, how are you?" length=50 writeOutput(LJustify(string,length)) </cfscript>
<cfscript>
    string="Hello CFFiddle, how are you?"
    length=50
    writeOutput(LJustify(string,length))
</cfscript>

Output

Hello CFFiddle, how are you?

Get help faster and easier

New user?