Originally posted by Colonel45 Could it be that I'm not passing an array instead it's receiving a string value (@Dept_Array)?
Your formula is creating a string.
Global Stringvar DisplayString;
You will also have to modify your loop, once you pass in the an array. Or create an array somehow, like for example splitting on chrw(13).
local stringVar array a := {@Dept_Array};
local numbervar b:=1;
Global Stringvar DeptString;
for x:=1 to ubound(a)
do
if left(a[x],7) = "5000001"
then DeptString:= DeptString + 'Public Consulting Group' + chrw(13)
...
You will be checking the x'th item in array a at each iteration of the loop.
Edited by Keikoku - 18 May 2011 at 10:08am