chartsEngine bug with version 10 of LC

Curry Kenworthy curry at pair.com
Wed Dec 29 01:23:55 EST 2021


Scott:

 > So you are saying that if the first char of the string is a number

No! There is no number.
Don't think about numbers. :)
Both sides are text in your comparison.

 > it uses the ascii value of the first char?

Always! Because both sides are text.
Two text strings. No numbers.

LC compares the FIRST CHAR of each text.
(If they are equal: then the 2nd chars, etc.)

 > “9foo”  >  9

Because "9" = "9" ... but "f" > "".

If you want a numerical comparison,
both sides must be numbers!

Once you have two dots, or an "f" etc, it's a string.
And if either side is text, the comparison is textual.

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