RE: sssssssssssssssssssssssssssssssssssssssssssssssssssssss
CFSET CutLength=30 CFSET MyString="sss" CFLOOP Condition="Len(MyString) GT CutLength" CFOUTPUT#Left(MYString,CutLength)#/CFOUTPUT CFSET MyString = Right(MyString,Len(MyString)-CutLength)) /CFLOOP Or something like that. This method won't be intelligent about words, but it will work. If you want it to look snazzy, then you'll want to mess about with checking when a word ends, and only put up to the end of the last full word. That's as long as it's a sentence and not just a lump of characters/numbers. I had some code to do this, but I'll have to dig it out - which may take some time (which I don't have much of these days) Philip Arnold ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: sssssssssssssssssssssssssssssssssssssssssssssssssssssss
I assumed it was a single long string that needed broken. If you want to break up a sentence, try CF_WRAP from the Tag Gallery. Chris Evans [EMAIL PROTECTED] http://www.fuseware.com -Original Message- From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]] Sent: Monday, July 10, 2000 6:40 AM To: [EMAIL PROTECTED] Subject: RE: sss CFSET CutLength=30 CFSET MyString="sss" CFLOOP Condition="Len(MyString) GT CutLength" CFOUTPUT#Left(MYString,CutLength)#/CFOUTPUT CFSET MyString = Right(MyString,Len(MyString)-CutLength)) /CFLOOP Or something like that. This method won't be intelligent about words, but it will work. If you want it to look snazzy, then you'll want to mess about with checking when a word ends, and only put up to the end of the last full word. That's as long as it's a sentence and not just a lump of characters/numbers. I had some code to do this, but I'll have to dig it out - which may take some time (which I don't have much of these days) Philip Arnold ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: sssssssssssssssssssssssssssssssssssssssssssssssssssssss
CFSET CutLength=30 CFSET MyString="sss" CFLOOP Condition="Len(MyString) GT CutLength" CFOUTPUT#Left(MYString,CutLength)#/CFOUTPUT CFSET MyString = Right(MyString,Len(MyString)-CutLength)) /CFLOOP Or something like that. Chris Evans [EMAIL PROTECTED] http://www.fuseware.com -Original Message- From: jonathan hamner [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 06, 2000 2:23 PM To: [EMAIL PROTECTED] Subject: sss I have a text field which can have upto 255 characters. Is there a way to loop in such a way that if the name string is 70 characters, then the first line should have 30 characters, then second line30, then third line 10? Can we assign a statement such as: cfset blah = #Len(form.name)# and then use this in the loop? Please view my previous email (with the answer I got from the list). Thank You. From: "Roberts, Jesse D" [EMAIL PROTECTED] | Block address To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: shorter lines Date: Wed, 5 Jul 2000 15:57:59 -0700 Reply-to: [EMAIL PROTECTED] Add Addresses Sure, use the Left, Mid, and Right functions. You should find info on them in your documentation. Jesse D. Roberts Business Process Analyst Procurement Quality Assurance Boeing - Huntington Beach, CA [EMAIL PROTECTED] Ph. 714-896-3462 Fx. 714-896-3303 -Original Message- From: jonathan hamner [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, July 05, 2000 3:25 PM To: [EMAIL PROTECTED] Subject: shorter lines I have to print out a invoice. In that if the name of the person is greater than 30 characters, the name goes over other peice of informations. Is there a way that instead of the name being displayed like: sss be displayed like: ss ss ss Thank You. __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.