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/

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to