Hi,
I had a String property in my project and as I didn’t have to change its value I wanted to changed it to a constant. Before removed the Property I created a constant with exactly the same name and Xojo crash (I wanted to erase my property after created the constant).
I wanted to reproduce the crash and I couldn’t. And while trying it, I see I’m able to create a String constant “MyCPM” and a string property “MyCPM” and a Method returning a string “MyCPM”.
My Method is only Return "xxx"
My constant is “yyy” and my property default value is “zzz”.
If I do
MsgBox MyCPM
I obtain “zzz” then the property.
Command-K to Analyze project code doesn’t report any trouble, I think it should. I think we shouldn’t be able to create Properties Constants Methods with the same name.
I don’t know if I should report a bug or not.