Page 1 of 1

Deleting custom properties

Posted: Mon May 05, 2014 4:32 pm
by atout66
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

Re: Deleting custom properties

Posted: Mon May 05, 2014 5:27 pm
by Klaus
Bonsoir Jean-Paul,

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

Best

Klaus

Re: Deleting custom properties

Posted: Mon May 05, 2014 5:35 pm
by dunbarx
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

Re: Deleting custom properties

Posted: Mon May 05, 2014 5:50 pm
by atout66
@ 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.