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
string trim component separator
Dustin Sayes
Hello,
The string : |=^5.0|
This is OBX 5. The generating application adds the "=^" before the value that we need, "5.0"
I am using xltp
set xlateOutVals [string trimleft $xlateInVals "=^"]
The OutVal becomes |5.0^5.0|
The echo on $xlateInVals shows "= 5.0" *note the ^ is missing
when i echo $xlateOutVals shows " 5.0" *note a space where the ^ was
and the final result, in the message is |5.0^5.0| in OBX 5
Why is it giving me that output? I assume it has something to do with the component separator being a control character? What can I do to get around this?
Find more posts tagged with
Clovertech
Comments
Keith McLeod
Try using a backslash in front of those characters.
=^5.0
Are you just trying to get rid of the second component?
jcobane1
Dustin,
A couple of issues -
1) because you have the value =^5.0 in OBX:5, the engine will see = in the first component of OBX:5 and 5.0 in the second component of OBX:5 because the ^ is the component separator.
Dustin Sayes
Thanks for the answers.
I ended up doing something similar
@null
-> 1(0).1(0).1(0).OBX(0).#5(0).[1]
Copy 1(0).1(0).1(0).OBX(0).#5(0).[1] -> 1(0).1(0).1(0).OBX(0).#5(0)
thanks again.