deleteCard

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
deleteCard
Associationscard
Summary

Sent to a card just before it is removed from the stack.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
on deleteCard -- update a list of cards to reflect the deletion
  send "updateList" to this stack in 10 ticks -- after card is deleted
  pass deleteCard
end deleteCard
RelatedKeyword: card
Property: cantDelete
Command: delete
Object: stack
Glossary: message, trap
Control Structure: pass
Description

Handle the deleteCard message if you want to perform cleanup before a card is removed from the stack.

The actual deletion is not triggered by the deleteCard message, so trapping the message and not allowing it to pass does not prevent the card from being removed.

Tagsobjects