How trim?
Bob Warren
robertum at brturbo.com
Sat Oct 22 09:34:21 EDT 2005
Sometimes inexperienced Rev programmers have to ask questions that make
them want to crawl under the table in shame because probably the answer
is idiotically simple. Here is such a question.
If I have a string, say:-
" The cat sat under the mat "
- and I want to trim off the leading and following blanks to give:-
"The cat sat on the mat"
- how can I do this quickly in Transcript?
In Basic, it is very simple. You can use the functions LTrim$, RTrim$ or
just Trim$ to lop off both sets of blanks.
Thanks very much in advance to the individual who will surely give me
the answer in a flash.
More information about the use-livecode
mailing list