It probably works with a group because a group can persist even if there are 
not cards that the group is attached to. Therefore the object containing the 
handler that is deleting the card is not itself getting deleted because it 
belongs to a group that still exists after the card is deleted. The issue is 
not the card getting deleted, it is the object whose script contains the 
handler that has the delete card command.

Bob S


On Dec 31, 2014, at 14:36 , stgoldb...@aol.com<mailto:stgoldb...@aol.com> wrote:

Peculiarly, if a put a button on a card with the script "delete this card" it 
won't work, but will work if I make the button a group. "Delete this card" also 
works from the message box.  It doesn't work when called upon from a stack 
script, including my efforts at timing.  I just found a way around this though 
by using "delete NEXT card" instead of "delete THIS card" in the stack script. 
Maybe the change in behavior has to do the newer Mac operating system (10.7.5 
and 10.9.5)?

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to