<cfset parts = "AD02002GN008">
<cfset asParts = "'" & parts & repeatstring(" ",300 - len(parts)) & "'">
<cfset asParts2 = "'" & ljustify(parts,300) & "'">
I usually use when I want to do this kind of down and dirty spacing.
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
....-----Original Message-----
....From: Botts, Tom [mailto:[EMAIL PROTECTED]
....Sent: Thursday, February 17, 2005 9:08 AM
....To: CF-Talk
....Subject: Padding
....
....I've run into a problem using cf 7. The following sample code works
....fine on our 6.1 box and the string is padded correctly with spaces.
....Under cf 7 only one space is added and it is not padded correctly.
....Whitespace management is turned off in the admin.
....
....<cfset parts = "AD02002GN008">
....<cfset asParts = "'" & parts & repeatstring(" ",300 - len(parts)) & "'">
....<cfset asParts2 = "'" & ljustify(parts,300) & "'">
....
....Thanks,
....Tom Botts
....~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
....Tom Botts
....Programmer/Analyst
....Gilbarco Inc.
....336-547-5911 phone
....336-547-5163 fax
[EMAIL PROTECTED]
....www.gilbarco.com <file://www.gilbarco.com/>
....~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
....This document contains confidential information of Gilbarco Inc. In
....consideration of the receipt of this document, the recipient agrees not
....to reproduce, copy, use or transmit this document and/or the information
....contained herein, in purpose except with written permission, first
....obtained, of GilbarcoInc. and further agrees to surrender the same to
....Gilbarco Inc. upon demand.
....
....
....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195234
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54