Before I do a lot of work on an idea I have I need to be sure about allowable characters in names of Custom Properties.
The User Guide says "letters, numbers and underscores" and "must start with letter or underscore" and "must be one word".
I am concerned with what "letters" means.
I have tried using letters with diacritical marks such as "Ä ñ é" and these seem to be allowable. (That is I can access the value stored in such a named custom property.)
Is there a definitive answer as to what can and can't be used?
As an aside I was interested to note that the toLower() function also works for these characters with diacritical marks in the range chartonum 192 to 222, (simply adding 32 to the chartonum value to get to the lower case version) apart from 215 "×" to 247 "÷" , and confusingly from 223 "ß" to 255 "ÿ" ( 159 is "Ÿ") but not for Ž to ž and Š to š.
Allowable characters for Custom properties names
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10057
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Allowable characters for Custom properties names
The DataGrid, with its multi-word properties, proves the Dictionary wrong on that.
I don't know the exact limits of property names, I've used move of the ASCII characters at one time or another and have yet to find a pattern that fails.
I don't know the exact limits of property names, I've used move of the ASCII characters at one time or another and have yet to find a pattern that fails.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Allowable characters for Custom properties names
Thanks for the quick advice Fourth World (or Richard Gaskin).
I think I'll script a little test to see what characters are OK. Should be relatively easy to do.
And I'll almost certainly be restricting allowable user input in any case so I'll keep going.
I think I'll script a little test to see what characters are OK. Should be relatively easy to do.
And I'll almost certainly be restricting allowable user input in any case so I'll keep going.