I am using CR XI. I have a parameter AMP defined which can have multiple values. At the current time to test my array set up, my values for the AMP parameter are: 501, 502, and 510 (in this order)
.
ubound{?AMP} within the array formula is returning the correct value of 3.
However my array is only returning one value, the last, 510.
I have defined the formula Fund Number which looks like the following:
whilereadingrecords;
numbervar i;
numbervar j := ubound({?AMP});
stringvar array fundnumber;
stringvar k := '';
for i :=1 to j do(
redim preserve fundnumber[j];
fundnumber:={?AMP};
k:= fundnumber
);
k
I have placed the formula Fund Number in GH1 area of the report.
The fund number value will be used to select financial accounts.
I have completed the report for one account number but have been asked to modify it for multiple account numbers, thus the array.
Any suggestions would be appreciated.
Thanks,
Oscar115
.
ubound{?AMP} within the array formula is returning the correct value of 3.
However my array is only returning one value, the last, 510.
I have defined the formula Fund Number which looks like the following:
whilereadingrecords;
numbervar i;
numbervar j := ubound({?AMP});
stringvar array fundnumber;
stringvar k := '';
for i :=1 to j do(
redim preserve fundnumber[j];
fundnumber:={?AMP};
k:= fundnumber
);
k
I have placed the formula Fund Number in GH1 area of the report.
The fund number value will be used to select financial accounts.
I have completed the report for one account number but have been asked to modify it for multiple account numbers, thus the array.
Any suggestions would be appreciated.
Thanks,
Oscar115