Hi There,
I'm trying to create a report that has one (for now) subreport that
contains a list of strings. I want to share this list into my main
report for comparison. I have been trying to use a shared stringvar array,
but I keep receiving an error that says 'a subscript must be between
1 and the size of the array'. Now my array is only 70 strings long,
when I look at it in my subreport. Here is an example of my code:
in the subreport:
whileprintingrecords;
shared numbervar counter1:={@counter};
shared stringvar array prod;
prod[counter1]:={tablename.prod_id}
in the main report:
whileprintingrecords;
shared numbervar counter1;
shared stringvar array prod;
prod[counter1];
I have placed both formulas all over the place within the main and
subreports respectively and initialized the counter and original
arrays within the subreport and still I receive the above error. Any
suggestions?
thanks
I'm trying to create a report that has one (for now) subreport that
contains a list of strings. I want to share this list into my main
report for comparison. I have been trying to use a shared stringvar array,
but I keep receiving an error that says 'a subscript must be between
1 and the size of the array'. Now my array is only 70 strings long,
when I look at it in my subreport. Here is an example of my code:
in the subreport:
whileprintingrecords;
shared numbervar counter1:={@counter};
shared stringvar array prod;
prod[counter1]:={tablename.prod_id}
in the main report:
whileprintingrecords;
shared numbervar counter1;
shared stringvar array prod;
prod[counter1];
I have placed both formulas all over the place within the main and
subreports respectively and initialized the counter and original
arrays within the subreport and still I receive the above error. Any
suggestions?
thanks