chartsEngine bug with version 10 of LC
Curry Kenworthy
curry at pair.com
Tue Dec 28 22:56:16 EST 2021
Scott:
> I’m still a little unclear about exactly what is going on here.
Because you are NOT comparing numbers.
You are comparing (like sorting) text.
That usually means: the FIRST CHAR of each string.
(The ASCII/ANSI/etc values of those chars.)
> put “7.foo” < 9 -- returns “true”
Because "7" < "9".
> put “77.foo” < 9 -- returns “true”
Because "7" < "9". (FIRST CHAR)
I just looked at WordLib's code:
it's already coded correctly!
Ready for LC version 10 or LC 1000.
(Going way back, I was already cautious
about these dotted-version comparisons.)
Best wishes,
Curry Kenworthy
WordLib: Import MS Word and OpenOffice documents in LiveCode!
http://livecodeaddons.com/wordlib.html
Christian LiveCode Training and Consulting
http://livecodeconsulting.com/
More information about the use-livecode
mailing list