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:195205
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54