Oh, I didn’t realize it was a documented feature, I retract my snarky comment. I suppose there are use cases.
Julia,
I still don’t understand, but that’s just how it is, the main thing is knowing it.
Sascha,
Thanks a lot for your code, I’ll be using it often.
Thanks everyone.
Isn’t it a HEX number ?
(yes, wrong example, but I understand the sentence as you mean it.)
BTW: Dictionary (macOS) does not know what a Naniser is. Can you explain ?
Thank you Sasha (Naniser is not related to computer).
Back to original question:
My personal feeling is… it is a Xojo bug. Xojo MUST not take a part of a word as if it is a Command - or whaterver - )
Example: what if I use "The dimention of this ship is…”
Can Xojo use dim (as Dim or Var) ?
Instead, Xojo must check about " Nan " (so this exclude other weird: a word including “nan” with characters before and after.
Your feeling may differ.
At last, when I want to use say Ticks, I use My_Ticks or Ticks_Start / Ticks_End to avoid troubles; but I never goes farther than that (never imagine Xojo can take a part of a word as a Command…)
This looks like AI who read a text in an image and add related stuff (image, logo, etc.) to my image modified as I was asking. OIne day it returned a piece of Chess. It tooks me a while to understand why (a word in the image like horse, king, queen, tower, I forgot, but this image was not related to the Chess game !
Even as far back as VB val has always taken the start of the string to read as a number. 1E23 will also become a number. Lots of software will break if this was ever changed.
Actually, it goes back even further. I just found the AppleSoft BASIC reference guide and val() works the very same way.
AppleSoft BASIC
Only when prefixed by &h which in this case it isn’t.
This isn’t about recognizing reserved words of the Xojo language (which is something only the compiler is concerned with and Xojo’s syntax dictates whether and how these reserved words must be separated from the surrounding text) but strictly about numbers.
I don’t know if it’s a bug (I run into plenty of them), but we’ll have learned something.