if ubound ({?Dept_ID}) = 1 then
'Corporate' + chr(13) + chr(10) +
'Education' + chr(13) + chr(10) +
'Enterprise Architecture Solutions' + chr(13) + chr(10) +
'Enterprise Program Services' + chr(13) + chr(10) +
'Enterprise Technology Solutions' + chr(13) + chr(10) +
'Health & Human Services' + chr(13) + chr(10) +
'IEP Online' + chr(13) + chr(10) +
'IT' + chr(13) + chr(10) +
'LTI' + chr(13) + chr(10) +
'Pacific North West' + chr(13) + chr(10) +
'Project Management Solutions' + chr(13) + chr(10) +
'Public Consulting Group' + chr(13) + chr(10) +
'Quality Solutions' + chr(13) + chr(10) +
'Technology Consulting'
else Join ({?Dept_ID}, chr(10) + chr(13))
Actually to be exact it says a STRING array is required here in the ELSE section. So if I use ?Dept_ID or ?Dept_Array from your code below it still is looking for a STRING array. Code for the ?Dept_Array formula field is below:
//Variable daclaration section
Global stringvar array x; //new array
Local numbervar j; //counter
Local numbervar num := count ({?Dept_ID}); // length of numbers array
//resize array to the same size as input array
Redim x[num];
//Loop through numeric array
//convert each record to text then store in x
For j := 1 to num Do
(
x[j] := totext({?Dept_ID}[j])
);