How trim?
MisterX
b.xavier at internet.lu
Sat Oct 22 10:07:46 EDT 2005
Marcus,
here's a new list of scripts from MonsieurX.com/taoo
http://www.monsieurx.com/tiki/tiki-read_article.php?articleId=5
They do stripping of bad text in text... choose which you need and just
put striplineendindspace(text) into text...
quite handy ofr lists, text, field entries, etc...
now, im sure there's more grep scripts for that but these work no matter
what the size of data entered compared to grep which can crash after a
certain
overload. Secondly, they also offer a speed advantage I believe (not
tested).
Lastly they were more compatible to port elsewhere...
cheers
Xavier
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> Marcus van Houdt
> Sent: Saturday, October 22, 2005 3:48 PM
> To: robertum at brturbo.com; How to use Revolution
> Subject: Re: How trim?
>
> Hello,
>
> With revolution this is even easier than Basic, all you need to do is:
>
> put word 1 to -1 of " The cat sat under the mat. "
>
> This will put "The cat sat under the mat." into message.
>
> Regards,
>
> Marcus
>
> Software Developer
> Runtime Revolution
>
>
> > 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.
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage
> your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list