Left justifies characters in a string of a specified length.
A copy of a string, left-justified.
Display and formatting functions, String functions
LJustify(string, length)
| Parameter | Description |
|---|---|
|
string |
A string or a variable that contains one |
|
length |
Length of field in which to justify string |
<!--- This example shows how to use LJustify --->
<cfparam name = "jstring" default = "">
<cfif IsDefined("FORM.justifyString")>
<cfset jstring = LJustify(FORM.justifyString, 35)>
</cfif>
<html>
<head>
<title>LJustify Example</title>
</head>
<body>
<h3>LJustify Function</h3>
<p>Enter a string, and it will be left justified within the sample field
<form action = "ljustify.cfm">
<p><input type = "Text" value = "<cfoutput>#jString#</cfoutput>"
size = 35 name = "justifyString">
<p><input type = "Submit" name = ""> <input type = "RESET">
</form>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting
Version 7
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000567.htm
Comments
dlakein said on May 29, 2006 at 3:42 PM :