Re: Deleting cards from within themselves.

2015-02-18 Thread Bob Sneidar
To my knowledge yes, but then I never tested it thoroughly, never having needed to. But I did test your stack and found that clearly send in time sent right away and ignored the in time argument. Bob S On Feb 17, 2015, at 23:48 , Richmond

Re: Deleting cards from within themselves.

2015-02-17 Thread Bob Sneidar
Yeah, looks like something broke with send in time. It’s clearly ignoring the in argument, because attempting to delete the card at all when the send in time is in a running script fails to delete the card, but deleting the card from the message box works fine. If I were you, I’d file a bug

Re: Deleting cards from within themselves.

2015-02-17 Thread J. Landman Gay
On 2/17/2015 7:43 PM, Richard Gaskin wrote: Bob Sneidar wrote: That should not be the case. Send in time means execute next idle message plus time. If it doesn’t work with 0 seconds, that means there is something triggering an Idle message before the script is finished. The only other

Re: Deleting cards from within themselves.

2015-02-17 Thread Richard Gaskin
Bob Sneidar wrote: That should not be the case. Send in time means execute next idle message plus time. If it doesn’t work with 0 seconds, that means there is something triggering an Idle message before the script is finished. The only other explanation is that the way we all thought send

Re: Deleting cards from within themselves.

2015-02-17 Thread Richmond
On 18/02/15 00:52, Bob Sneidar wrote: Yeah, looks like something broke with send in time. It’s clearly ignoring the in argument, because attempting to delete the card at all when the send in time is in a running script fails to delete the card, but deleting the card from the message box works

Re: Deleting cards from within themselves.

2015-02-17 Thread Richmond
On 17/02/15 21:05, Bob Sneidar wrote: That should not be the case. Send in time means execute next idle message plus time. If it doesn’t work with 0 seconds, that means there is something triggering an Idle message before the script is finished. The only other explanation is that the way we

Re: Deleting cards from within themselves.

2015-02-17 Thread Richmond
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:

Re: Deleting cards from within themselves.

2015-02-17 Thread Richmond
A BIG, BIG 'Thank You' to all and everyone for their very great help snowing me under with wonderful suggestions for this problem. Confirming my opinion, yet again, that this Use-List and the LiveCode community as a whole consists of a great bunch of people. Love you lot, Richmond.

Re: Deleting cards from within themselves.

2015-02-17 Thread Bob Sneidar
That should not be the case. Send in time means execute next idle message plus time. If it doesn’t work with 0 seconds, that means there is something triggering an Idle message before the script is finished. The only other explanation is that the way we all thought send in time worked is not

Re: Deleting cards from within themselves.

2015-02-17 Thread Richmond
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

Re: Deleting cards from within themselves.

2015-02-16 Thread Richmond
On 16/02/15 22:30, Eric Corbett wrote: use send mouseUp to btn DELL of card “INPUTTER” in 1 milliseconds Nope! On Feb 16, 2015, at 12:02 PM, Richmond richmondmathew...@gmail.com wrote: On 16/02/15 21:54, Roger Eller wrote: try this: click at the loc of btn DELL of card INPUTTER

Re: Deleting cards from within themselves.

2015-02-16 Thread Roger Eller
try this: click at the loc of btn DELL of card INPUTTER ~Roger On Mon, Feb 16, 2015 at 2:42 PM, Richmond richmondmathew...@gmail.com wrote: This CANNOT be done, as such. I am currently working up a moronically simple flashcard program for people to learn words in a new language. It

Re: Deleting cards from within themselves.

2015-02-16 Thread Richmond
On 16/02/15 21:54, Roger Eller wrote: try this: click at the loc of btn DELL of card INPUTTER ~Roger Thanks, but no joy: because that line still has to be inside a script in an object on the card to be deleted. On Mon, Feb 16, 2015 at 2:42 PM, Richmond richmondmathew...@gmail.com

Re: Deleting cards from within themselves.

2015-02-16 Thread Eric Corbett
use send mouseUp to btn DELL of card “INPUTTER” in 1 milliseconds in the first mouseU On Feb 16, 2015, at 12:02 PM, Richmond richmondmathew...@gmail.com wrote: On 16/02/15 21:54, Roger Eller wrote: try this: click at the loc of btn DELL of card INPUTTER ~Roger Thanks, but no joy:

RE: Deleting cards from within themselves.

2015-02-16 Thread John Dixon
into cardNo send getridofcard to this stack in 100 millisecs end mouseUp Date: Mon, 16 Feb 2015 22:36:36 +0200 From: richmondmathew...@gmail.com To: use-livecode@lists.runrev.com Subject: Re: Deleting cards from within themselves. On 16/02/15 22:30, Eric Corbett wrote: use send

Deleting cards from within themselves.

2015-02-16 Thread Richmond
This CANNOT be done, as such. I am currently working up a moronically simple flashcard program for people to learn words in a new language. It features a card where end-users can add terms. Now, for every new term a templet card is cloned and 2 fields on the cloned card are filled. No

Re: Deleting cards from within themselves.

2015-02-16 Thread Richmond
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! ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Deleting cards from within themselves.

2015-02-16 Thread BNig
this, actually I may have read it somewhere or stumbled upon it when fooling with the evaluation of the the quotes in a send in time message?. No idea. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Deleting-cards-from-within-themselves

Re: Deleting cards from within themselves.

2015-02-16 Thread Klaus major-k
Am 16.02.2015 um 22:00 schrieb BNig bernd.niggem...@uni-wh.de: 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 you don't need any handler

Re: Deleting cards from within themselves.

2015-02-16 Thread Peter M. Brigham
You have to put the delete card handler in a higher level script in the message path. For instance. put this into the stack script: on deleteMyCard cdID delete card id cdID end deleteMyCard then put this into the button: on mouseup send (deleteMyCard the short id of this card) to

Subject: Re: Deleting cards from within themselves.

2015-02-16 Thread stgoldb...@aol.com
You can have a card button that deletes the card if you make the button a group background button. While you see the button on the card, it is not actually on the card but behind the card and can be used to delete the card. on mouseUp -- script on background group button delete this card end

RE: Deleting cards from within themselves.

2015-02-16 Thread John Dixon
Bernd... You show us all up every time...:-) Again, 'nice one!'... Dixie Date: Mon, 16 Feb 2015 12:43:28 -0800 From: bernd.niggem...@uni-wh.de To: use-revolut...@lists.runrev.com Subject: Re: Deleting cards from within themselves. Or even a bit easier --- on mouseUp

Re: Deleting cards from within themselves.

2015-02-16 Thread Peter M. Brigham
?. No idea. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Deleting-cards-from-within-themselves-tp4688894p4688912.html Sent from the Revolution - User mailing list archive at Nabble.com

Re: Deleting cards from within themselves.

2015-02-16 Thread BNig
in context: http://runtime-revolution.278305.n4.nabble.com/Deleting-cards-from-within-themselves-tp4688894p4688926.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please

Re: Deleting cards from within themselves.

2015-02-16 Thread Klaus major-k
Hi Bernd, Am 17.02.2015 um 00:15 schrieb BNig bernd.niggem...@uni-wh.de: Hi Klaus, ... --- on mouseUp put the long id of this card into tLID send delete tLID to this stack in 0 milliseconds end mouseUp you don't need any handler anywhere. Just tested on LC 5.5, it

Re: Deleting cards from within themselves.

2015-02-16 Thread Geoff Canyon
On Mon, Feb 16, 2015 at 2:42 PM, Richmond richmondmathew...@gmail.com wrote: Now, for every new term a templet card is cloned and 2 fields on the cloned card are filled. Bernd's solution is correct if you really want to create/delete cards. It would be better/more scalable to just maintain a

Re: Deleting cards from within themselves.

2015-02-16 Thread G.W.Gaich
in the stack script: on delcd pCd delete cd id pCd end delcd in the script of the btn of your card: on mouseUp send (delcd the id of this cd) to this stack in 0 end mouseup Best Günter Am 16.02.2015 um 20:42 schrieb Richmond: This CANNOT be done, as such. I am currently working up

Re: Deleting cards from within themselves.

2015-02-16 Thread BNig
-- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Deleting-cards-from-within-themselves-tp4688894p4688908.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use