I really just simply want to print the contents of an array. I have done this before in different languages but never is Crystal Reports. I did some research on the web and have come up with a few simple lines of code, but it doesn't work.
Lot_Num_Array has the values of the array (it is dynamic but will always have at least one value. ARRAY_COUNT has the amount of values in the array. The last variable is i, and it just simply counts for the loop and prints the current value at that spot in the array.
SHARED STRINGVAR ARRAY Lot_Num_Array;
SHARED NUMBERVAR ARRAY_COUNT;
LOCAL NUMBERVAR i :=0;
WHILE (i <= ARRAY_COUNT) DO
i := i + 1;
I am currently getting an error "A Subscript must be between 1 and the size of the array." but when Lot_Num_Array is first called i should be 1 (which I guess points to the first value in the array, not like 99% of other languages that have it start at 0).
When I take out the array printing, just to prove that the loop works, i get no errors but the formula returns TRUE.