Deleting cards from within themselves.

Richmond richmondmathewson at gmail.com
Tue Feb 17 13:50:11 EST 2015


On 16/02/15 23:00, BNig wrote:
> Hi Peter,
>
> the point is that in a button on a card
> -----------
> on mouseUp
>     put the long id of this card into tLID
>     send "delete tLID" to this stack in 0 milliseconds
> end mouseUp
> ------------
>
>

No joy with this one:

on mouseUp
    answer "Do you want to delete this card?" with "NO" and "YES"
    if it is "YES" then

       put the long id of this card into tLID
       send "delete tLID" to this stack in 0 milliseconds
       go to card "ADDER"
    else
       ---
       end if
end mouseUp

Richmond.




More information about the use-livecode mailing list