Deleting custom properties

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Deleting custom properties

Post by atout66 » Mon May 05, 2014 4:32 pm

Hi to all,

When I read an array, I keep data into custom properties of a field liste for each line of that field, so if I click in line1, I can read the content of line 1, and so on for line2, etc.

My problem is that I don't know the name of the custom propertie for each line because it depends of the data array, and this is dynamical.

Is there a way to remove all custom properties of an object, whatever they are named ?

Kind regards, Jean-Paul
Discovering LiveCode Community 6.5.2.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Deleting custom properties

Post by Klaus » Mon May 05, 2014 5:27 pm

Bonsoir Jean-Paul,

do this:
...
set the customkeys of btn "whatever" to EMPTY
## Replace btn "whatever" with the object of your choice
...

Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Deleting custom properties

Post by dunbarx » Mon May 05, 2014 5:35 pm

Hi.

Is the name of the custom property associated with each key of that line in the array? Because you can extract this information in the clear. For example, you could write a handler that shows a toolTip based on the line number the mouse hovers over, and that toolTip could give the key (name of the custom property) of that line.

Or am I misunderstanding?

Craig Newman

atout66
Posts: 266
Joined: Wed Feb 02, 2011 12:31 pm

Re: Deleting custom properties

Post by atout66 » Mon May 05, 2014 5:50 pm

@ Klaus, It's OK, thanks Klaus, I feel a shame to miss <customkeys> from the dictionnary :oops:

@Craig
Is the name of the custom property associated with each key of that line in the array?
Yes, Craig. My problem was that every time I read the array, I had to update the custom properties and after a while, as names could be different, it would have increased to much.

Thanks for your help.
Kind regards, Jean-Paul.
Discovering LiveCode Community 6.5.2.

Post Reply