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
Duplicate values
System
Originally posted by Bala Pisupati
I have a variable
ex:
set PID [lindex $x $i]
now $PID has
1
2
3
1
5
4
can any one tell me how i can seperated the duplicates
if $PIDhas more than 1 value
do something}else {
do something}
Find more posts tagged with
Clovertech
Comments
Tom Rioux
Not sure exactly what you are asking. Are you wanting to remove duplicates from a list? If so, try this:
hcitcl>set PID "1 2 3 1 5 4"
1 2 3 1 5 4
hcitcl>set newPID [lrmdups $PID]
1 2 3 4 5
Hope this helps...
Tom
System
Originally posted by Bala Pisupati
Thanks Thomas
Yes i am trying to remove the duplicates.
It worked.