Re: delete the customproperty (of a card)
For removing a single property while leaving the rest intact, I have a library routine rmProp. on rmProp prop, tgt --remove a property from the basic property set local props if tgt is empty then put the long id of me nto tgt end if put the customProperties of tgt into props repeat for each word prp in prop delete variable props[prp] end repeat set the customProperties of tgt to props end rmProp -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 ___ 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: delete the customproperty (of a card)
The answer for what I was after: set the customPropertySets of this card to empty Thanks all. Particularly, Glen Bojsza for the offlist sample stack and explanatory video. -- N. Cueto On 1 January 2018 at 10:14, Nicolas Cueto wrote: > The answer for what I was after: > > > On 1 January 2018 at 02:03, Richmond Mathewson via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Fegs! >> >> delete the customKeys of card id 1002 >> >> warked :-* >> >> Richmond. >> >> >> >> On 31/12/2017 6:59 pm, Richmond Mathewson wrote: >> >>> If you know the name of the customProp . . . >>> >>> one can EMPTY the customProp very easily indeed: >>> >>> set the "XYZ" of card id 1002 to empty >>> >>> that does, howeve, mean that the prop "XYZ" is still 'there': >>> I'm not sure whether that is important. >>> >>> In the DICTIONARY is states this: >>> >>> "You can delete an object's custom property sets by setting the object's >>> customPropertySets to empty." >>> >>> So I wonder why this: >>> >>> set the customPropertySets of card id 1002 to empty >>> >>> divn't work? >>> >>> At this point I would generally start sending 'slightly offensive' >>> remarks to Mark & Kevin, >>> but for a variety of reasons just the now I'll content mysen by sending >>> them >>> >>> "Hae a gae guid Hogmanay, chiels!" >>> >>> Yours aye, Richmond, >>> an Ah'll stick the knife intil ye in the new towmond ;-) >>> >>> >>> >>> >>> On 31/12/2017 6:02 pm, hh via use-livecode wrote: >>> Dictionary > customKeys ___ 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: delete the customproperty (of a card)
The answer for what I was after: On 1 January 2018 at 02:03, Richmond Mathewson via use-livecode < use-livecode@lists.runrev.com> wrote: > Fegs! > > delete the customKeys of card id 1002 > > warked :-* > > Richmond. > > > > On 31/12/2017 6:59 pm, Richmond Mathewson wrote: > >> If you know the name of the customProp . . . >> >> one can EMPTY the customProp very easily indeed: >> >> set the "XYZ" of card id 1002 to empty >> >> that does, howeve, mean that the prop "XYZ" is still 'there': >> I'm not sure whether that is important. >> >> In the DICTIONARY is states this: >> >> "You can delete an object's custom property sets by setting the object's >> customPropertySets to empty." >> >> So I wonder why this: >> >> set the customPropertySets of card id 1002 to empty >> >> divn't work? >> >> At this point I would generally start sending 'slightly offensive' >> remarks to Mark & Kevin, >> but for a variety of reasons just the now I'll content mysen by sending >> them >> >> "Hae a gae guid Hogmanay, chiels!" >> >> Yours aye, Richmond, >> an Ah'll stick the knife intil ye in the new towmond ;-) >> >> >> >> >> On 31/12/2017 6:02 pm, hh via use-livecode wrote: >> >>> Dictionary > customKeys >>> >>> ___ >>> 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: delete the customproperty (of a card)
Fegs! delete the customKeys of card id 1002 warked :-* Richmond. On 31/12/2017 6:59 pm, Richmond Mathewson wrote: If you know the name of the customProp . . . one can EMPTY the customProp very easily indeed: set the "XYZ" of card id 1002 to empty that does, howeve, mean that the prop "XYZ" is still 'there': I'm not sure whether that is important. In the DICTIONARY is states this: "You can delete an object's custom property sets by setting the object's customPropertySets to empty." So I wonder why this: set the customPropertySets of card id 1002 to empty divn't work? At this point I would generally start sending 'slightly offensive' remarks to Mark & Kevin, but for a variety of reasons just the now I'll content mysen by sending them "Hae a gae guid Hogmanay, chiels!" Yours aye, Richmond, an Ah'll stick the knife intil ye in the new towmond ;-) On 31/12/2017 6:02 pm, hh via use-livecode wrote: Dictionary > customKeys ___ 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: delete the customproperty (of a card)
If you know the name of the customProp . . . one can EMPTY the customProp very easily indeed: set the "XYZ" of card id 1002 to empty that does, howeve, mean that the prop "XYZ" is still 'there': I'm not sure whether that is important. In the DICTIONARY is states this: "You can delete an object's custom property sets by setting the object's customPropertySets to empty." So I wonder why this: set the customPropertySets of card id 1002 to empty divn't work? At this point I would generally start sending 'slightly offensive' remarks to Mark & Kevin, but for a variety of reasons just the now I'll content mysen by sending them "Hae a gae guid Hogmanay, chiels!" Yours aye, Richmond, an Ah'll stick the knife intil ye in the new towmond ;-) On 31/12/2017 6:02 pm, hh via use-livecode wrote: Dictionary > customKeys ___ 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: delete the customproperty (of a card)
Dictionary > customKeys ___ 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
delete the customproperty (of a card)
Very simple question, I guess. But from the documentation I've only figured out : set the customKeys["myCP"] of this card to empty How do I completely delete the customProp myCP itself? Bettery yet, how could I delete at once all customProps, even if I don't know their names?! Thanks. (And "akemashite omedeto!") -- Nicolas Cueto ___ 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