Tracking And Deleting Objects Via Custom Properties?

Paul Hibbert lc at pbh.on-rev.com
Tue May 29 22:27:16 EDT 2012


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:

> 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 custom property?
> 
> Here's essentially what I'm trying to do:
> 
> on mouseUp
>   put the buttonList of current card into tButtons
>   put the short name of last btn into tTargetButton
>   if  tTargetButton  is among the lines of tBullets then
>      delete the foundline of tButtons
>      answer tTargetButton & "Button has been deleted."
>      end if
> end mouseUp
> 
> How can I delete the name of an object listed in the custom property?
> 
> Thank you!
> 
> John Patten
> SUSD
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list