Deleting cards from within themselves.

Richmond richmondmathewson at gmail.com
Mon Feb 16 21:43:56 CET 2015


On 16/02/15 22:41, John Dixon wrote:
> Richmond...
>
> It is not 'nope!'.. Eric's suggestion is on the right track
>
> put this into a stack script :-)
> global cardNo
>
> on getridofcard
>     delete card ID cardNo
> end getridofcard
>
> and this in the button, you were on about in each card :-
>
> global cardNo
>
> on mouseUp
>     put the short id of this card into cardNo
>     send "getridofcard" to this stack in 100 millisecs
> end mouseUp
>

Thanks: that explanation is really good.

>
>> Date: Mon, 16 Feb 2015 22:36:36 +0200
>> From: richmondmathewson at gmail.com
>> To: use-livecode at lists.runrev.com
>> Subject: Re: Deleting cards from within themselves.
>>
>> On 16/02/15 22:30, Eric Corbett wrote:
>>> use
>>>
>>> send "mouseUp" to btn "DELL" of card “INPUTTER” in 1 milliseconds
>>>
>> Nope!
>>
>>




More information about the use-livecode mailing list