Re: How to tell if something is put into the message box

2016-12-30 Thread Bob Sneidar
So THAT's what that does! It reminds me of those Self Destruct buttons that have a sign underneath them that say, "DO NOT PUSH THIS BUTTON!" So I never did. ;-) Bob S On Dec 30, 2016, at 01:00 , Ali Lloyd mailto:ali.ll...@livecode.com>> wrote: The target icon at the bottom of the message box

Re: How to tell if something is put into the message box

2016-12-30 Thread Alex Tweedly
On 30/12/2016 09:07, Kay C Lan wrote: That is where the misunderstanding is, \w is a word character, equivalent to [a-zA-Z0-9_], not a word, so to get a single word (variable name) that is equal to or longer than a single character you need \w+ See - I said I was not an expert; I should have sa

Re: How to tell if something is put into the message box

2016-12-30 Thread Kay C Lan
On Fri, Dec 30, 2016 at 8:10 AM, Alex Tweedly wrote: > OK, I am NOT a regex expert, but ... > > wouldn't that give you other lines like >put tVar into myVar No, because \w doesn't match white space chars like space and tab. > should it not be simply > ^put \w$ that would only work if you ha

Re: How to tell if something is put into the message box

2016-12-30 Thread Ali Lloyd
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 wrote: > OK, I am NOT a regex expert, but ... > > wouldn't that give you other lines like > put tVar into myVar > > should it no

Re: How to tell if something is put into the message box

2016-12-29 Thread Alex Tweedly
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 p

Re: How to tell if something is put into the message box

2016-12-29 Thread Bob Sneidar
Oh I never thought of using regex! I understand the principle but I'm not so clear on all the options and how they interact. I tried reading up on it once but my brain began to hurt so I backed off. :-) Bob S > On Dec 29, 2016, at 13:18 , Kay C Lan wrote: > > If all you were looking for was

Re: How to tell if something is put into the message box

2016-12-29 Thread Kay C Lan
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 li

Re: How to tell if something is put into the message box

2016-12-29 Thread Bob Sneidar
NVM I figured out a way to do this. I set gRevDevelopment to true, then set a breakpoint on the first line of revInitialise of the behavior of field "message" of card "Single Line" of stack "Message Box". At that point I was able to use the Handler List popup menu in the script editor to find th

How to tell if something is put into the message box

2016-12-29 Thread Bob Sneidar
Hi all. I, like a moron, put a value into the message box usign the form "put x" without the "into message". Now I cannot find where that bit of code is. Is there a place I can modify the code that does that to either break or else save the calling program a log file? Bob S ___