How to tell if something is put into the message box

Ali Lloyd ali.lloyd at livecode.com
Fri Dec 30 04:00:48 EST 2016


The target icon at the bottom of the message box will take you to the line
of script that last 'put' something there.

On Fri, Dec 30, 2016 at 12:10 AM Alex Tweedly <alex at tweedly.net> wrote:

> OK, I am NOT a regex expert, but ...
>
> wouldn't that give you other lines like
>     put tVar into myVar
>
> should it not be simply
> ^put \w$
> so that you don't get all the other put statements ... that "+" allows
> any number (>=1) of words.
>
> And even then, you will miss
>     if x = y then put tVar
> and
>    put tVar    -- for debug purposes
> and
>    put tVar + tVar1
> and lots of other less constructs :-)
>
> -- Alex.
>
> On 29/12/2016 21:18, Kay C Lan wrote:
> > If all you were looking for was incidences of:
> >
> > put tVar
> >
> > you could always just open the 'Find and Replace' from the Edit menu,
> > select This stack, tick the 'Reg. Expression' box and search for:
> >
> > ^put \w+$
> >
> > I know you'll know what this means but for those not so familiar with
> regex:
> >
> > ^ = start of line
> >    followed by a space character
> > \w = any word character
> > + = 1 or more times
> > $ = end of line
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list