Returns left-justified string of a field length.
LJustify(string, length)
| Parameter |
Description |
|---|---|
| string |
String to left-justify |
| length |
Length of field |
<!--- 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 bgcolor = silver>
<H3>LJustify Function</H3>
<P>Enter a string, and it will be left justified within
the sample field
<form action = "ljustify.cfm" method = "POST">
<P><input type = "Text" value = "<cfoutput>#jString#</cfoutput>"
size = 35 name = "justifyString">
<P><input type = "Submit" name = ""> <input type = "RESET">
</FORM>
</body>
</html>