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
Variable as array?
System
Originally posted by Rich
Gents,
As always, thank you so much for your continued support!
If I copy PID.18 (Account Number) into a variable (say
@AN)
, Could I treat it like an array for the sake of evaluation? Like: If
@AN[0]
= 5
Would that work?
Find more posts tagged with
Clovertech
Comments
Rob Abbott
The
@variables
in Xlate are simple strings, so no you can't address them this way.
System
Originally posted by Rich
Thanks Rob! Is there a way to use a numeric variable? My problem is that Cloverleaf 6.0 won't let me do a substring search of PID.18. I'm guessing because it's numeric.
System
Originally posted by Rich
Another question might be, can I pull the first digit directly out of 0(0).PID(0).#18(0) by adding (0)(0) ?
Jim Kosloskey
If you are on CL 6.0 or later, look at the STRING Action Substr Function. That would allow you to pull out the characters you want by position and place them in a Temp Variable.
You can then use an IF Action against the temp variable.
If you are on an earlier release, you will need to use Tcl. I have a proc that does that. If you want that email me but if you can use the STRING Action, I would advise that.