infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Tcl "lcompare" command...
Tom Rioux
Has anyone used this command? I don't see a man page for it anywhere. I have it some code I am testing but I am getting mixed results. It is returning either a -1, 0, or 1 and I'm sometimes I'm seeing a 1 or 0 when I expect a -1.
Any information would be helpful.
Thanks....
Find more posts tagged with
Clovertech
Comments
Charlie Bursell
It comes from an old extended Tcl library. From a hcitcl/tcl prompt
tcl> help hci/lists/lcompare
lcompare list1 list2
This command compares two lists and returns thier relation
(like strcmp 0). Corresponding elements of each list
are compared. The result is the value of the first difference
encountered or equality. A list that is a prefix of the other
list is considered to be less than the other list.
By default, items are compared lexicographically. The -numeric
flag (or some unique fraction thereof), however, causes the
items to be compared as double-precision floating-point
numbers.