trimming ?

Rob Cozens rcozens at pon.net
Wed Aug 21 09:42:01 CDT 2002


>>If you're simultaneously stripping leading AND trailing spaces on a
>>single line of text, can't you just use "get word 1 to -1 of
>>theText"?
>
>Nice one!
>
>I guess I'm ruled by habit. However, by having a line such as:
>
>put cr & tab & space into tTrimChars

Thanks, Dave,

Then again, you are checking for tabs as well as spaces, and Jacque 
is eliminating multiple spaces between all words.

This just struck me as perhaps the best answer to the original problem.
-- 

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)



More information about the use-livecode mailing list