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> 



Banner.Novgorod.Ru