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?

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy