Re: Finding orphaned "put"

2013-05-06 Thread Richard Gaskin
IIRC the trick with revMessageBoxRedirect is to obtain the value of the Message Box contents from the global variable "message" (or "msg"). -- Richard Gaskin Fourth World Systems Software Design and Development for Desktop, Mobile, and Web

Re: Finding orphaned "put"

2013-05-06 Thread Alex Tweedly
I can't quite seem to figure out how that works. (With both 5.5.3 and 6.0, I get the following ) If I set revMessageBoxRedirect to the long ID of a field, then the contents of the field get updated as though it had been the message box; i.e. the field is updated, but there is no "msgChange

Re: Finding orphaned "put"

2013-05-06 Thread Paul Maguire
On 6 May 2013, at 22:39, J. Landman Gay wrote: > I was just talking to someone today who is also fleeing Director Director is great. There is nothing else like it. It's Adobe that are the problem. Kind regards, Paul. --- Paul Maguire http://www.paulmaguire.me _

Re: Finding orphaned "put"

2013-05-06 Thread Richard Gaskin
Another option would be to use the revMessageBoxRedirect global property, and catch the executionContexts from your specified object: -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthwo

Re: Finding orphaned "put"

2013-05-06 Thread Mark Wieder
Alex Tweedly writes: > Having had the great idea of keeping this info, someone should have said > > "let's keep that info for *every* line (actually, every section) of > output in the msg box" I like the idea. As currently written, there's a single system property called "revmessageboxlast

Re: Finding orphaned "put"

2013-05-06 Thread J. Landman Gay
On 5/6/13 1:55 PM, Paul Maguire wrote: Thanks for this. Putting stuff in Director (my other life) has an impact on engine speed, especially if it is a large string. I was just talking to someone today who is also fleeing Director. He's moving everything to LiveCode now. -- Jacqueline Landma

Re: Finding orphaned "put"

2013-05-06 Thread J. Landman Gay
On 5/6/13 3:03 PM, Mark Wieder wrote: Alex Tweedly writes: I personally don't use it (yet?), because I *never* use orphaned "put"s, I don't either. I can't imagine where they keep coming from. I think maybe it's the adult stage of larval lost socks. They're coming from me, guys. I use orp

Re: Finding orphaned "put"

2013-05-06 Thread Mark Wieder
Alex Tweedly writes: > I personally don't use it (yet?), because I *never* use orphaned "put"s, I don't either. I can't imagine where they keep coming from. I think maybe it's the adult stage of larval lost socks. -- Mark Wieder mwie...@ahsoftware.net ___

Re: Finding orphaned "put"

2013-05-06 Thread Paul Maguire
On 6 May 2013, at 17:17, J. Landman Gay wrote: > On 5/6/13 6:33 AM, Paul Maguire wrote: >> My simple question is - does putting stuff slowdown runtime >> performance? > It shouldn't make a dent in the speed, it's just pushing thing to stdout. The > engine is very fast. One of the (relatively) slo

Re: Finding orphaned "put"

2013-05-06 Thread J. Landman Gay
On 5/6/13 6:33 AM, Paul Maguire wrote: This was a good thread - ta! My simple question is - does putting stuff slowdown runtime performance? In my first bit of iOS/Android development I'm putting stuff all the time and checking it in Console to help debug... It shouldn't make a dent in the spe

Re: Finding orphaned "put"

2013-05-06 Thread Paul Maguire
This was a good thread - ta! My simple question is - does putting stuff slowdown runtime performance? In my first bit of iOS/Android development I'm putting stuff all the time and checking it in Console to help debug... Kind regards, Paul.

Re: Finding orphaned "put"

2013-05-05 Thread Alex Tweedly
I agree it's not been hyped (or praised) as much as it deserves. But, it's also not as good as it should have been :-( Having had the great idea of keeping this info, someone should have said "let's keep that info for *every* line (actually, every section) of output in the msg box" and th

Re: Finding orphaned "put"

2013-05-05 Thread Peter Haworth
Hi William, Academic at this point but I couldn't resist improving this a bit! I can make it exclude single line comments starting with "--" (or whatever you use for comment indicators) but can't think of a way to deal with block comments, or comments part way through a line. Here's the regexp fo

Re: Finding orphaned "put"

2013-05-04 Thread J. Landman Gay
On 5/4/13 9:14 PM, william humphrey wrote: The target button would be wonderful but since the message box comes up, but nothing is in it when it does, maybe that makes it not work. It works for me here. It sounds like the "put" is putting empty into the message box, which is too bad. It would

Re: Finding orphaned "put"

2013-05-04 Thread Jerry Jensen
On May 4, 2013, at 7:24 PM, william humphrey wrote: > (?im)^\s*put\s((?!(after|into|before|\\)).)*$ Gesundheit! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: Finding orphaned "put"

2013-05-04 Thread william humphrey
But (?im)^\s*put\s((?!(into|after|before|\\)).)*$ -- works perfectly in BBedit. Thank you very much (just doesn't work in live code perhaps because I don't know how to tell livecode to use Regex in the find feature). On Sat, May 4, 2013 at 10:24 PM, william humphrey < b...@bluewatermaritime.com> w

Re: Finding orphaned "put"

2013-05-04 Thread william humphrey
(?im)^\s*put\s((?!(after|into|before|\\)).)*$ the after|into|before , guessing the vertical bar means "or" but is not working. It only works for whatever the first word is and then still finds the next two. ___ use-livecode mailing list use-livecode@lis

Re: Finding orphaned "put"

2013-05-04 Thread william humphrey
(?im)^\s*put\s((?!(into|after|before|\\)).)*$ is wonderful but gives me 450 lines to look through (admittedly less than 6500). Found lots of commented code and lines like: *put* tHolder2 & *return* after tAllCargoLines_Processed which have the word "after" so I don't get it. The target butto

Re: Finding orphaned "put"

2013-05-04 Thread Mark Wieder
Jerry- Saturday, May 4, 2013, 6:40:52 PM, you wrote: > SWEET! That got me to download 6. It's a very cool feature, and one that I don't think has been hyped enough. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@

Re: Finding orphaned "put"

2013-05-04 Thread Jerry Jensen
On May 4, 2013, at 2:58 PM, Alex Tweedly wrote > 6.0 contains a new feature (which I've not yet used :-) - in the message box > there is a button (top right, looks kind of like a target symbol) > when you click it, the editor shows you the source script line that caused > the last output. SWEE

Re: Finding orphaned "put"

2013-05-04 Thread J. Landman Gay
Peter Haworth wrote: >But that requires him to know how to execute the code that puts to the >message box - if he knew that, he'd know where to look to delete it :-) > >Pete >lcSQL Software > > >On Sat, May 4, 2013 at 3:05 PM, J. Landman Gay >wrote: > >> On 5/4/13 3:35 PM,

Re: Finding orphaned "put"

2013-05-04 Thread Peter Haworth
Sorry, I meant "\", not "/" Pete lcSQL Software On Sat, May 4, 2013 at 5:15 PM, Peter Haworth wrote: > Hi Scott, > This will list lines that have a continuation char - "/" - at the end with > into/after/before on the next line. Pretty remote circumstance but I tend > to

Re: Finding orphaned "put"

2013-05-04 Thread Peter Haworth
Hi Scott, This will list lines that have a continuation char - "/" - at the end with into/after/before on the next line. Pretty remote circumstance but I tend to do that if I have a particularly long source with lots of "&" and "&&" to make it more readable. Still think the regexp approach is the

Re: Finding orphaned "put"

2013-05-04 Thread Peter Haworth
But that requires him to know how to execute the code that puts to the message box - if he knew that, he'd know where to look to delete it :-) Pete lcSQL Software On Sat, May 4, 2013 at 3:05 PM, J. Landman Gay wrote: > On 5/4/13 3:35 PM, william humphrey wrote: > >> Grep

Re: Finding orphaned "put"

2013-05-04 Thread Peter Haworth
William, Just tried out the regexp I gave you and found it needs a couple of changes to deal with case insensitivity, looking for "before" and also dealing with the LC script continuation char "\" which could occur at the end of a line before the into/after/before. The new version of the regexp is

Re: Finding orphaned "put"

2013-05-04 Thread Scott Rossi
Here's a script I use that answers the offending line(s) of script with line numbers: on mouseUp put script of into S put empty into temp put 1 into N repeat for each line L in S if "put" is in L and ("into" is not in L and "after" is not in L and "before" is not in L) then put

Re: Finding orphaned "put"

2013-05-04 Thread J. Landman Gay
On 5/4/13 3:35 PM, william humphrey wrote: Grep is way to difficult to use for this. And it isn't just "into" it's also "after". I'm back to wishing there was a way to turn off the message box feature of being called without explicitly calling it. It is truly evil. If you are using LiveCode 6,

Re: Finding orphaned "put"

2013-05-04 Thread Alex Tweedly
6.0 contains a new feature (which I've not yet used :-) - in the message box there is a button (top right, looks kind of like a target symbol) when you click it, the editor shows you the source script line that caused the last output. That might help you in this case -- Alex. On 04/05/20

Re: Finding orphaned "put"

2013-05-04 Thread Mark Wieder
william- Saturday, May 4, 2013, 1:15:47 PM, you wrote: > I have many lines of script which say "put something into variable" > I have one line of script which just says "put variable" - what that does > is open the message box. I'd like to find that line of script and delete > it. > Could I rea

Re: Finding orphaned "put"

2013-05-04 Thread Jerry Jensen
On May 4, 2013, at 1:35 PM, william humphrey wrote: > Grep is way to difficult to use for this. And it isn't just "into" it's > also "after". And also "before". Also a bunch of other things that you can see in the dictionary by finding "put". Also require white space before and after so you do

Re: Finding orphaned "put"

2013-05-04 Thread Peter Haworth
Hi WIlliam, You should be able to find your orphaned puts using a regular expression in the Find box In the script editor window, type command-F then click the More button and the the expand arrow for iptions, then check the regular expression box. In the Find What box type: ^\s+put\s.((?!(into|

Re: Finding orphaned "put"

2013-05-04 Thread Dr. Hawkins
On Sat, May 4, 2013 at 1:05 PM, william humphrey wrote: > I remember reading somewhere that version 6.0 or maybe GLX2 script editor > has a way to find an orphaned "put". Anybody have any suggestions? If I > search for every "put" in my 6500 lines of code it will take a while and my > eyes will g

Re: Finding orphaned "put"

2013-05-04 Thread Robert Sneidar
You should be able to do this in lc. Put the script of into -- repeat loop to put the line number of each line before eeach line in the variable Filter with "*put*" Filter without "*into*" Put a loop around it for every object in you project and build a list of objects and line numbers.

Re: Finding orphaned "put"

2013-05-04 Thread william humphrey
Grep is way to difficult to use for this. And it isn't just "into" it's also "after". I'm back to wishing there was a way to turn off the message box feature of being called without explicitly calling it. It is truly evil. On Sat, May 4, 2013 at 4:20 PM, william humphrey wrote: > 2335 lines hav

Re: Finding orphaned "put"

2013-05-04 Thread william humphrey
2335 lines have the word "put". I haven't figured out how to tell BBedit to find just before a "return" and without the word "into". On Sat, May 4, 2013 at 4:17 PM, Robert Sneidar wrote: > Off the top of my head, put the script into a variable. Filter with > "put*". Filter without "into". Not su

Re: Finding orphaned "put"

2013-05-04 Thread Robert Sneidar
Off the top of my head, put the script into a variable. Filter with "put*". Filter without "into". Not sure what you mean by orphaned. Erm... Without "*into*" Now that I think of it prolly have to filter for "*put*". Bob Sneidar IT Manager Calvary Chapel CM Sent from iPhone On May 4, 2013, at

Re: Finding orphaned "put"

2013-05-04 Thread Mark Schonewille
William, Write a repeat loop that loops through all stacks, cards and their controls and checks all scripts for a line that contains put but not into. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitte

Re: Finding orphaned "put"

2013-05-04 Thread william humphrey
I have many lines of script which say "put something into variable" I have one line of script which just says "put variable" - what that does is open the message box. I'd like to find that line of script and delete it. Could I really put 6000 lines of script in a variable? But you have given me a

Re: Finding orphaned "put"

2013-05-04 Thread Robert Sneidar
Off the top of my head, put the script into a variable. Filter with "put*". Filter without "into". Not sure what you mean by orphaned. Erm... Without "*into*" Bob Sneidar IT Manager Calvary Chapel CM Sent from iPhone On May 4, 2013, at 13:05, william humphrey wrote: > I remember reading somew

Re: Finding orphaned "put"

2013-05-04 Thread Robert Sneidar
Off the top of my head, put the script into a variable. Filter with "put*". Filter without "into". Not sure what you mean by orphaned. Bob Sneidar IT Manager Calvary Chapel CM Sent from iPhone On May 4, 2013, at 13:05, william humphrey wrote: > I remember reading somewhere that version 6.0 or

Finding orphaned "put"

2013-05-04 Thread william humphrey
I remember reading somewhere that version 6.0 or maybe GLX2 script editor has a way to find an orphaned "put". Anybody have any suggestions? If I search for every "put" in my 6500 lines of code it will take a while and my eyes will go blurry reading each one to check if it is putting to the messag