Re: compiler not catching bad exit within routine

2016-12-07 Thread Bob Sneidar
Another thing to try that helped me more than once is to copy/paste the script (the ENTIRE script not just the handlers) into a text file formatted for Text Only then copy/paste it back into your script replacing what is there. I think it has something to do with the unicode text thingummy. Bob

RE: compiler not catching bad exit within routine

2016-12-07 Thread Ralph DiMola
To: How to use LiveCode Subject: Re: compiler not catching bad exit within routine On Wed, Dec 7, 2016 at 3:21 AM, Dave Kilroy wrote: > Have you tried checking your script for invisible characters? Try > copying the entire script to something like BBedit, selecting and > copying it afr

Re: compiler not catching bad exit within routine

2016-12-07 Thread Dr. Hawkins
On Wed, Dec 7, 2016 at 3:21 AM, Dave Kilroy wrote: > Have you tried checking your script for invisible characters? Try copying > the entire script to something like BBedit, selecting and copying it afresh > there, deleting everything in the LiveCode script, saving it to ensure it's > clean, pasti

Re: compiler not catching bad exit within routine

2016-12-07 Thread Ali Lloyd
Or try this if the script is not supposed to have any non-ascii characters: local tLineCount, tCPCount repeat for each line tLine in

Re: compiler not catching bad exit within routine

2016-12-07 Thread Dave Kilroy
cript from Bbedit and finally saving... - "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/compiler-not-catching-bad-exit

Re: compiler not catching bad exit within routine

2016-12-06 Thread Dr. Hawkins
On Tue, Dec 6, 2016 at 4:01 PM, mwieder wrote: > My guess is that there's a "makeNewDnaRec" variable somewhere in the > original script. > just checked; and no. And strict compilation is on (although it seems to keep getting turned off). -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___

Re: compiler not catching bad exit within routine

2016-12-06 Thread mwieder
Yeah, I think that's the point of the original post. My guess is that there's a "makeNewDnaRec" variable somewhere in the original script. - -- Mark Wieder ahsoftw...@gmail.com -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/compi

Re: compiler not catching bad exit within routine

2016-12-06 Thread Dr. Hawkins
On Tue, Dec 6, 2016 at 3:03 PM, Ali Lloyd wrote: > I've no idea what the problem could be, but when things like this happen to > me I copy the routine and continually delete lines until either I discover > what I did wrong, or have a very minimal test case. > That's my usual approach, but it fa

Re: compiler not catching bad exit within routine

2016-12-06 Thread Dr. Hawkins
On Tue, Dec 6, 2016 at 2:52 PM, Dave Kilroy wrote: > You define a handler "mkNwDnaRec" but your exit statement refers to > "makeNewDnaRec" ... > > Correct. That should throw any error on script save--but it doesn't. The rest of the script compiles, but this routine quietly doesn't. -- Dr.

Re: compiler not catching bad exit within routine

2016-12-06 Thread Dave Kilroy
evolution.278305.n4.nabble.com/compiler-not-catching-bad-exit-within-routine-tp4710898p4710901.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to sub

Re: compiler not catching bad exit within routine

2016-12-06 Thread Ali Lloyd
I've no idea what the problem could be, but when things like this happen to me I copy the routine and continually delete lines until either I discover what I did wrong, or have a very minimal test case. On Tue, Dec 6, 2016 at 9:30 PM Dr. Hawkins wrote: > I have a (much longer) routine to the nat

compiler not catching bad exit within routine

2016-12-06 Thread Dr. Hawkins
I have a (much longer) routine to the nature of on mkNwDnaRec if something then exit makeNewDnaRec end if end mkNwDnaRec The compiler doesn't choke when saving the editor window. It does, though, file to go to mkNwDnaRec stating that it can't find it. I then paste the routine into anothe