| LJUSTIFY | |
| Description
Left justifies characters in a string of a specified length. |
|
| Returns
A copy of a string, left-justified. |
|
| Category
Display and formatting functions, String functions |
|
Function syntaxLJustify(string, length) |
|
| See also
CJustify, RJustify |
|
| Parameters
|
|
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>
|
|
| STRING | |
| LENGTH | |