Backscript behavior

dunbarx at dunbarx at
Fri Mar 4 15:18:34 EST 2011


If I have this in a button script:

on mouseUp
end mouseUp

and this in a stack script:

on checkBack
   put ""
   wait 20
   put  random(99)
end checkBack

and then insert that stack script into back, I still only get one random number. Is that what you meant, that you might get two?

And by the way, answers are what we expect from you, not questions.


-----Original Message-----
From: J. Landman Gay <jacque at>
To: LiveCode Mailing List <use-livecode at>
Sent: Fri, Mar 4, 2011 3:04 pm
Subject: Backscript behavior

Somebody preserve my sanity here...if a stack script is inserted into the back, and you happen to be working in that stack, are called handlers executed twice? 
I'm getting some weird results. The message watcher says they aren't, and lists only one call for each handler. But the debugger steps through each one twice. 
I'm inclined to think it's a debugger issue, but if not, it would explain some weird behaviors I'm seeing in my stack. 
-- Jacqueline Landman Gay         |     jacque at 
HyperActive Software           | 
use-livecode mailing list 
use-livecode at 
Please visit this url to subscribe, unsubscribe and manage your subscription preferences: 


More information about the Use-livecode mailing list