Hi All…
I have a script that is storing objects via their name in a custom property of
the card. I'm trying to delete one of the objects by checking if the object
name is 'among' the 'list' of items. This works fine. However I can delete the
name of the object from the list of objects in the
Probably something like this would work.
on mouseUp
put the buttonList of current card into tButtons
put the short name of last btn into tTargetButton
put lineoffset(tTargetButton,tButtons) into tOffset -- get the matching
line number in tButtons
if tOffset 0 then -- if there was a
John,
You can't edit the list of items in a custom property directly, but you can put
the list of items in the custom property into a variable, delete the item from
the variable then set the custom property back to the modified variable.
HTH
Paul
On 2012-05-29, at 7:14 PM, JOHN PATTEN wrote:
You could use this, something I saved along the way. I *think* it's from the
stdLib by Ken Ray and Richard Gaskin, but I've lost track.
on deleteCustomProperty tObjRef,tPropSet,tProp
-- not sure where this comes from, it's not mine
-- thanks to whoever !
put the custompropertyset of
Thanks Peter, Paul, and Mike!
I forgot about the lineOffset… :)
Cheers!
John Patten
SUSD
On May 29, 2012, at 7:33 PM, Peter M. Brigham, MD wrote:
You could use this, something I saved along the way. I *think* it's from the
stdLib by Ken Ray and Richard Gaskin, but I've lost track.
on