<cfset displayString = Left( myString, 70 )>


If the string is longer than 70 chars, it'll just return the first 70 chars.
If the string is less than 70 chars, it'll return the entire string.

-----Original Message-----
From: Kristopher Pilles [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 2:49 PM
To: CF-Talk
Subject: String Help

Ok...

Have many strings... vary in size....  I want them all to disaply from
character 1 to chracter 70.  If tehre is less tehn 70 then nothing
happens, if there is more then 70 then trim all text remaining to the
right...

I am burnt today so I would love a little bit of help

Thanks

Kristopher Pilles
Website Manager
Western Suffolk BOCES
507 Deer Park Rd., Building C
Phone: 631-549-4900 x 267
E-mail: [EMAIL PROTECTED]
<<Kristopher Pilles.vcf>>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to