deleting cards

Annegret Duda (starnet!apple!rbg.informatik.th-darmstadt.de!duda)
Tue, 22 Nov 94 11:05:58 GMT

Hello,

I have problems with deleting cards inside a stack. If I delete a card by
"MetaCard Menu Bar"-> "Edit" -> "Delete Card" all is ok also if I delete
the card via a button and a script

on mouseUp
delete this card
end mouseUp

But if the script contains the Control Structure "if ..then" for example

on mouseUp
answer "Do you really want to delete this card" with "Yes" or "Cancel"
if it = "Yes" then delete this card
end mouseUp

metacard goes down with signal 11.

What can I do? I must have some Control Structures in the script!

Annegret

Annegret Duda | Tel.: 049 6151 16-3510
Rechnerbetriebsgruppe FB 20 |
Merckstrasse 25 |
TH-Darmstadt