Hello All,
I've got a formula based on a user input parameter field array. I have placed this formula in the report footer so that it prints all the parameter values inputted by the user. However, the parameter field is optional. Therefore, if the user leaves the parameter value null, an error occurs when the formula field tries to count the number of elements in the array. My code is below.
numbervar counter1;
stringvar holder1;
counter1 := count({?parameterField}); .
while counter1 > 0 do
(holder1 := holder1 + {? parameterField }[counter1] + Chr(13);
counter1 := counter1 - 1);
holder1 [1 to (length(holder1)-1)]
How do I keep this from happening?
Any/all help will be greatly appreciated!!!
Thanks,
Tom
I've got a formula based on a user input parameter field array. I have placed this formula in the report footer so that it prints all the parameter values inputted by the user. However, the parameter field is optional. Therefore, if the user leaves the parameter value null, an error occurs when the formula field tries to count the number of elements in the array. My code is below.
numbervar counter1;
stringvar holder1;
counter1 := count({?parameterField}); .
while counter1 > 0 do
(holder1 := holder1 + {? parameterField }[counter1] + Chr(13);
counter1 := counter1 - 1);
holder1 [1 to (length(holder1)-1)]
How do I keep this from happening?
Any/all help will be greatly appreciated!!!
Thanks,
Tom