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
simple string range question
Kevin Crist
I am having issues with what I though would be something simple. I need to pull out the first character of a code in the OBR4 field.
The value is L100.0050, L400.0625 and others.
When I try to pull the first letter only wanting the "L" but I am getting everything up to the decimal point. So I am getting L100 , L400 .
Below is my code. Any ideas?
lassign $xlateInVals begChar
set NewBegChar [string range $begChar 0 0]
lappend xlateOutVals $NewBegChar
is this wrong?
thanks.
Find more posts tagged with
Clovertech
Comments
jcobane1
Kevin,
Should xlateOutVals only be the first character, or are you truly trying to append the 1st character to the existing value? If you only want the first character, then I think you need to:
set xlateOutVals
I believe xlateOutVals is normally already populated with xlateInVals, and lappend'ing to it would add the additional output value to xlateOutVals (assuming there is another output field listed to house it). This is probably why you are still seeing the L100 (is the output field only 4 characters in length?)You should echo out xlateOutVals prior to executing your code to see what is there.Jim CobaneHenry Ford Health
Kevin Crist
that loud thud you heard was my head hitting the desk. knew it was something simple.
That worked great and makes sense.
Thanks a bunch.