deleting an object as a consequence of its handler...... missing line break

Ralph DiMola rdimola at evergreeninfo.net
Thu Sep 26 12:48:42 EDT 2013


Dr,

I do this when deleting some stuff including the button this script is in
and it works just fine and dandy for me. Sorry for the missing line break.
(why does this always happen when copying from the IDE and the pasting it
into an email?) Also the "with 1" is just a parameter I need to send to
identify all things that get deleted when button is pressed(including the
button itself).



Dispatch "DeleteMyButtonAndOtherstuff" to me with 1


exit to top



Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Dr. Hawkins
Sent: Thursday, September 26, 2013 12:36 PM
To: How to use LiveCode
Subject: deleting an object as a consequence of its handler

I have a section where, as a consequence of a closefield, it makes sense to
just wipe the screen and generate it again.

While the closeField handler is in the stack (actually, a button for
behavior), this results in an error as the field, part of one of the groups
getting deleted, is associated with the running script.

What is the best way to deal with this?

I could send in 0ms I suppose, but might another message in the queue jump
ahead if that happens?

Pass the closefield somehow (but it's already a stack script, and the main
stack would have to do some checking to figure out where the closefield was
coming from?).

"set the expendable of the target to true" ?   :)

--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
_______________________________________________
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