LJustify

Description

Returns left-justified string of a field length.

Category

String functions

Syntax

LJustify(string, length) 

See also

CJustify, RJustify

Parameters

Parameter
Description
string
String to left-justify
length
Length of field

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 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> 

LiveDocs comments are not longer enabled for ColdFusion 5.0. Please use one of the following resources instead.

ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 5.0