Deleting cards from within themselves.

Richmond richmondmathewson at gmail.com
Tue Feb 17 13:52:41 EST 2015


On 17/02/15 20:50, Richmond wrote:
> 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
>> ------------
>>
>>
>
> But, this was, indeed joyous:
>
> 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 5 milliseconds
>       go to card "ADDER"
>    else
>       ---
>       end if
> end mouseUp
>
Obviously "o milliseconds" was far too short.

Richmond.




More information about the Use-livecode mailing list