Page 1 of 1

Allowable characters for Custom properties names

Posted: Wed Feb 10, 2010 3:34 am
by lewis
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 š.

Re: Allowable characters for Custom properties names

Posted: Wed Feb 10, 2010 5:05 am
by FourthWorld
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.

Re: Allowable characters for Custom properties names

Posted: Thu Feb 11, 2010 2:31 am
by lewis
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.