Re: Deleting cards from within themselves.
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 richmondmathew...@gmail.commailto:richmondmathew...@gmail.com wrote: I wonder what you mean by Broke ? That was put together with 6.7.2 - do you mean that 'send in time' was working better in earlier versions? Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 report using this stack as an example, and then I would bone up on using cards as forms to a database, and not as records in a database themselves. Bob S On Feb 17, 2015, at 11:26 , Richmond richmondmathew...@gmail.com wrote: 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 all thought send in time worked is not *actually* the way it works. Bob S I have uploaded the stack here: https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 file: fc.livecode.zip Please feel free to download it and play around with the scripts. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 explanation is that the way we all thought send in time worked is not *actually* the way it works. It appears to be the latter - check out the discussion here: http://quality.runrev.com/show_bug.cgi?id=13585 That's pretty interesting. I wonder why messaging order would be platform dependent. I like the proposal in the feature request. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 in time worked is not *actually* the way it works. It appears to be the latter - check out the discussion here: http://quality.runrev.com/show_bug.cgi?id=13585 -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 fine. If I were you, I’d file a bug report using this stack as an example, Um: well, frankly, that stack is a load of simplistic 'cod' that I ran up because a load of kids I teach wanted something very quickly. It is clunky; and as kids add words the thing is going to bloat at such a rate it is going to stuff-up their hard drives like nobody's business. However, it will keep the kids off my back while I get on with something rather better. I have a view to work on something that will lever a tab delimited text file, or, more simply, a simple listField. and then I would bone up on using cards as forms to a database, and not as records in a database themselves. Bob S I wonder what you mean by Broke ? That was put together with 6.7.2 - do you mean that 'send in time' was working better in earlier versions? Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 all thought send in time worked is not *actually* the way it works. Bob S I have uploaded the stack here: https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0 file: fc.livecode.zip Please feel free to download it and play around with the scripts. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 *actually* the way it works. Bob S On Feb 17, 2015, at 10:52 , Richmond richmondmathew...@gmail.commailto:richmondmathew...@gmail.com wrote: 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. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
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! 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: 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 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 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 rocket science round these parts! HOWEVER . . . there's always one of those . . . I want a button on each vocab. card that allows chummy to delete that card. Tried a button with this script: on mouseUp put the ID of this card into fld QARD of card INPUTTER send mouseUp to btn DELL of card INPUTTER end mouseUp where button DELL contains this: on mouseUp put fld QARD into QARD delete card ID QARD end mouseUp now, clicking directly on button DELL deletes the card . . but clicking the button on the card to be deleted does NOT delete that card because the script in that button is still active. Would be grateful for any ideas on this one. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 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 rocket science round these parts! HOWEVER . . . there's always one of those . . . I want a button on each vocab. card that allows chummy to delete that card. Tried a button with this script: on mouseUp put the ID of this card into fld QARD of card INPUTTER send mouseUp to btn DELL of card INPUTTER end mouseUp where button DELL contains this: on mouseUp put fld QARD into QARD delete card ID QARD end mouseUp now, clicking directly on button DELL deletes the card . . but clicking the button on the card to be deleted does NOT delete that card because the script in that button is still active. Would be grateful for any ideas on this one. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 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 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 rocket science round these parts! HOWEVER . . . there's always one of those . . . I want a button on each vocab. card that allows chummy to delete that card. Tried a button with this script: on mouseUp put the ID of this card into fld QARD of card INPUTTER send mouseUp to btn DELL of card INPUTTER end mouseUp where button DELL contains this: on mouseUp put fld QARD into QARD delete card ID QARD end mouseUp now, clicking directly on button DELL deletes the card . . but clicking the button on the card to be deleted does NOT delete that card because the script in that button is still active. Would be grateful for any ideas on this one. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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: 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 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 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 rocket science round these parts! HOWEVER . . . there's always one of those . . . I want a button on each vocab. card that allows chummy to delete that card. Tried a button with this script: on mouseUp put the ID of this card into fld QARD of card INPUTTER send mouseUp to btn DELL of card INPUTTER end mouseUp where button DELL contains this: on mouseUp put fld QARD into QARD delete card ID QARD end mouseUp now, clicking directly on button DELL deletes the card . . but clicking the button on the card to be deleted does NOT delete that card because the script in that button is still active. Would be grateful for any ideas on this one. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Deleting cards from within themselves.
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 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 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 ~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 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 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 rocket science round these parts! HOWEVER . . . there's always one of those . . . I want a button on each vocab. card that allows chummy to delete that card. Tried a button with this script: on mouseUp put the ID of this card into fld QARD of card INPUTTER send mouseUp to btn DELL of card INPUTTER end mouseUp where button DELL contains this: on mouseUp put fld QARD into QARD delete card ID QARD end mouseUp now, clicking directly on button DELL deletes the card . . but clicking the button on the card to be deleted does NOT delete that card because the script in that button is still active. Would be grateful for any ideas on this one. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Deleting cards from within themselves.
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 rocket science round these parts! HOWEVER . . . there's always one of those . . . I want a button on each vocab. card that allows chummy to delete that card. Tried a button with this script: on mouseUp put the ID of this card into fld QARD of card INPUTTER send mouseUp to btn DELL of card INPUTTER end mouseUp where button DELL contains this: on mouseUp put fld QARD into QARD delete card ID QARD end mouseUp now, clicking directly on button DELL deletes the card . . but clicking the button on the card to be deleted does NOT delete that card because the script in that button is still active. Would be grateful for any ideas on this one. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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: 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 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 and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 anywhere. Just tested on LC 5.5, it works :) @ Dixie, I don't claim I found 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-tp4688894p4688912.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 anywhere. Just tested on LC 5.5, it works :) @ Dixie, I don't claim I found 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 tLID sounded a bit famiiar to me :-) http://forums.livecode.com/viewtopic.php?f=7t=22780p=117404hilit=delete+card#p117406 Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 this stack in 0 secs end mouseup That way the message gets queued to fire after the script of the button is finished executing. You can't delete an object whose script is still executing. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Feb 16, 2015, at 3:36 PM, Richmond wrote: 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 ~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 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 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 rocket science round these parts! HOWEVER . . . there's always one of those . . . I want a button on each vocab. card that allows chummy to delete that card. Tried a button with this script: on mouseUp put the ID of this card into fld QARD of card INPUTTER send mouseUp to btn DELL of card INPUTTER end mouseUp where button DELL contains this: on mouseUp put fld QARD into QARD delete card ID QARD end mouseUp now, clicking directly on button DELL deletes the card . . but clicking the button on the card to be deleted does NOT delete that card because the script in that button is still active. Would be grateful for any ideas on this one. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Subject: Re: Deleting cards from within themselves.
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 mouseUp Stephen Goldberg www.medmaster.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Deleting cards from within themselves.
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 put the long id of this card into tLID send delete tLID to this stack in 5 milliseconds end mouseUp --- see also on the forum http://forums.livecode.com/viewtopic.php?f=7t=22154hilit=+delete+button#p114046 Kind regards Bernd ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
Right. Simpler. -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On Feb 16, 2015, at 4:00 PM, 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 you don't need any handler anywhere. Just tested on LC 5.5, it works :) @ Dixie, I don't claim I found 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-tp4688894p4688912.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
Hi Klaus, Klaus major-k wrote Am 16.02.2015 um 22:00 schrieb BNig lt; bernd.niggemann@ gt;: 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 anywhere. Just tested on LC 5.5, it works :) @ Dixie, I don't claim I found 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 tLID sounded a bit famiiar to me :-) lt;http://forums.livecode.com/viewtopic.php?f=7amp;t=22780amp;p=117404amp;hilit=delete+card#p117406gt; Best Klaus like in http://forums.livecode.com/viewtopic.php?f=7t=22154hilit=+delete+button#p114046 ? Kind regards Bernd -- View this message 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 visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 works :) @ Dixie, I don't claim I found 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 tLID sounded a bit famiiar to me :-) lt;http://forums.livecode.com/viewtopic.php?f=7amp;t=22780amp;p=117404amp;hilit=delete+card#p117406gt; Best Klaus like in http://forums.livecode.com/viewtopic.php?f=7t=22154hilit=+delete+button#p114046 Ouch, yes! :-D But i really knew this before, I promise! 8-) ? Kind regards Bernd Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 list of the information and use a single card to display it. Then deleting a card would just mean removing an entry from that list. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
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 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 rocket science round these parts! HOWEVER . . . there's always one of those . . . I want a button on each vocab. card that allows chummy to delete that card. Tried a button with this script: on mouseUp put the ID of this card into fld QARD of card INPUTTER send mouseUp to btn DELL of card INPUTTER end mouseUp where button DELL contains this: on mouseUp put fld QARD into QARD delete card ID QARD end mouseUp now, clicking directly on button DELL deletes the card . . but clicking the button on the card to be deleted does NOT delete that card because the script in that button is still active. Would be grateful for any ideas on this one. Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Deleting cards from within themselves.
Or even a bit easier --- on mouseUp put the long id of this card into tLID send delete tLID to this stack in 5 milliseconds end mouseUp --- see also on the forum http://forums.livecode.com/viewtopic.php?f=7t=22154hilit=+delete+button#p114046 Kind regards Bernd -- 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-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode