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
Cloverleaf
question - variable within a range
Phillip Huckeby
Why doesn't the bolded work?
set newClock [clock seconds]
set timeZone [clock format $newClock -format "%z"]
set dtLength [string length $xlateInVals]
if {
12>= $dtLength <19
} {
set num1 [string range $xlateInVals 0 11]
set num2 "00"
set num3 $timeZone
set xlateOutVals [concat $num1$num2$num3]
}
I had to change it to this.
set newClock [clock seconds]
set timeZone [clock format $newClock -format "%z"]
set dtLength [string length $xlateInVals]
if {
$dtLength >=12 && $dtLength <19
} {
set num1 [string range $xlateInVals 0 11]
set num2 "00"
set num3 $timeZone
set xlateOutVals [concat $num1$num2$num3]
}
Find more posts tagged with
Clovertech
Comments
Charlie Bursell
You are trying to combine 2 operations into one - not supported.
Tcl does have a mathop function may do this but it does not seem to be supported with this version of Tcl