|
LJustify
DescriptionLeft
justifies characters in a string of a specified length.
ReturnsA copy
of a string, left-justified.
Function syntaxLJustify(string, length)
Parameters
Parameter
|
Description
|
string
|
A string or a variable that contains one
|
length
|
Length of field in which to justify string
|
Example<!--- 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>
|