Strip

Dave Cragg dcragg at lacscentre.co.uk
Wed Jul 10 18:37:01 EDT 2002


At 4:36 pm -0500 10/7/02, Ken Ray wrote:
>Dave,
>
>How about a little shorter version:
>
>   replace "(*)" & cr with cr in field x
>   if char -1 of field x is cr then delete char -1 of field x
>
>-- of course, this is only if one wants to remove a trailing cr...

If the last line ends with "(*)", without a trailing cr the replace 
won't work. So I added one, just in case, and removed it later.

>>  put cr after field x
>>  replace "(*)" & cr with cr in field x
>>  delete char -1 of field x

Cheers
Dave



More information about the use-livecode mailing list