Every time I try to use a number in a property name, Xojo crashes. Is this a known bug?
For example: 1stLineIndent
No, it should instead show a Warning “The name must be a legal identifier: 1stLineIndent”
I think identifiers must start with a-z and A-Z.
Which Xojo IDE Version?
version 2023 r4
Maybe Clear Caches and restarting the IDE can fix it?
If not, please report it using a sime example project or describe how it can be reliable reproduced.
That’s true. They can contain numbers and glyphs after the first character though (except punctuation).
Make sure you report that.
Yup, that crashes nicely.
When I try to add a Property and name it 1st… the IDE shows a ToolTip below it that says: “The name must be a legal identifier”, how do you manage to name a property like that?
Using Xojo2023r4 on a M2 mac with Sonoma.
same as @AlbertoD, and it is refused and reverts back to “untitled”
Same behaviour for me, no crash.
André, how/where are you trying to add the property? I guess we’re not doing the same thing.
In my case, I tried adding a new property to an existing window, and pasted the example (1stLineIndent).
Exactly
in order to avoid such problems and other naming conflicts, I use to prefix any names with a personal identifier, for instance ‘im’.
For instance ‘imFirstLine’ or ‘im1stLine’, etc.
Which also helps to quickly identify my properties in sorted lists while debugging.