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 help: how do I identify a number?
System
Originally posted by Rentian Huang
In Tcl, how do I identify that a variable is a number? Or Char?
similiar to IsNumberic, or IsChar...
Thanks,
Sam 8)
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Sam,
Check out 'string is'.
Jim Kosloskey
System
Originally posted by Rentian Huang
Jim,
I guess I am lost, can you give me more detail of 'string is'? an example?
Thanks,
Sam
Jim Kosloskey
Sam,
The string Tcl command has many options. One of them is the 'is class' option. Do a help string in hcitcl to see all options etc.
example:
set junk abcdef
string is digit -strict $junk
---> returns a zero (not true)
set stuff 12345
string is digit -strict $stuff
---> returns a one (true)
set nonsense ""
string is digit -strict $nonsense
---> returns a zero (not true)
Jim Kosloskey
System
Originally posted by Rentian Huang
Jim,
All the scenarios work except this case:
set ICD9 401.9
string is digit -strict $ICD9
---> returns zero
I tried the double para and it comes out good.
string is double $ICD9
Thanks for your help!!!
Sam 8)