Property Inspector bug for keys with commas in the key name

Niggemann, Bernd Bernd.Niggemann at uni-wh.de
Fri Nov 3 14:29:09 EDT 2023


Hi Paul,

The problem with the comma in a customproperty name in the Properties Inspector (PI) arises because the PI uses a treeview to display the customproperties. More specifically the "hilitedElement" to retrieve the current selection and "hilitedElement" has the form:
"A comma delimited list of array keys."

Now you have a comma in your customproperty name and at that point the PI is confused as to what is the key and what is the value and fails to display both.

However I wonder if treeview or PI is to blame:

Page 145 of "Livecode User Guide" 9.6.10
Custom Property Names
The name of a custom property must consist of a single word and may contain any combination of letters, digits, and underscores (_). The first character must be either a letter or an underscore.

Page 113 of "Revolution User Guide 2.0" printed edition from 2004
Custom Property Names
The name of a custom property must consist of a single word and may contain any combination of letters, digits, and underscores (_). The first character must be either a letter or an underscore.

So I am afraid that treeview could not expect a comma in a customproperty name.

Kind regards
Bernd


More information about the use-livecode mailing list