Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LJustify?

Status
Not open for further replies.

GUJUm0deL

Programmer
Jan 16, 2001
3,676
US
Hi, can someone tell me what this does:
Code:
<cfset Address = LJustify(left(Address, 40), 40)>
<cfset city = LJustify(left(City, 40), 40>
<cfset state = LJustify(left(state, 2), 2)>

Thanks.

[sub]
____________________________________
Just Imagine.
[sub]
 
Standard CF function - look it up in help.

It returns a LENGTH-sized field with STRING at the beginning.
 
LEFT()
Returns the count of characters from the beginning of a string argument.

LEFT(STRING, COUNT)

STRING:String from which the leftmost characters are retrieved

COUNT:positive integer; number of characters to return

------------------------------------------------------------

LJustify()
Returns left-justified string of a field length

LJustify(string, length)

SRING:String to left-justify

LENGTH:Length of field


------------------------------------------------------------------------------
brannonH
if( !succeed ) try( );
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top