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
Deleting custom properties
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Deleting custom properties
Discovering LiveCode Community 6.5.2.
Re: Deleting custom properties
Bonsoir Jean-Paul,
do this:
...
set the customkeys of btn "whatever" to EMPTY
## Replace btn "whatever" with the object of your choice
...
Best
Klaus
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
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
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
@ Klaus, It's OK, thanks Klaus, I feel a shame to miss <customkeys> from the dictionnary
@Craig
Thanks for your help.
Kind regards, Jean-Paul.

@Craig
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.Is the name of the custom property associated with each key of that line in the array?
Thanks for your help.
Kind regards, Jean-Paul.
Discovering LiveCode Community 6.5.2.