delete last card problems

Malte Brill revolution at derbrill.de
Sun May 22 15:26:50 EDT 2005


Hi Bob,

this should do...

In the stack script:

on deleteTheCards
   if the number of this cd<>1 then
     delete this cd
   else
     repeat with i=1 to the number of fields of this cd
       put empty into fld i of this cd
     end repeat
   end if
end deleteTheCards

In your button script

on mouseUp
   deleteTheCards
end mouseUp

Hope this helps,

Malte


More information about the use-livecode mailing list