Skip to Content
0
Former Member
Jul 06, 2016 at 04:03 PM

Problem on shared variable passed to subreport

19 Views

Dear all,

i am facing a problem with a shared variable. Basically i store some values in a string array and i have a subreport (sub1) where i passed it.

I group the data based on the week but the shared variable have less data, therefore i am encountering the following error.

"subscript must be between 1 and the size of the array" (in attachment a screenshot)

I am happy to manually add the last value contained in the shared value but i need to catch the expression to do so, in a if-statement for instance.

An example "if the array is empty than add the last value of the array".

Note the array is built in this way: i add a "^" at the end of each figure, but is not mandatory: i can make a different one if you suggest so.

Hope is clear

Thanks in advance

Best Regards

Luca

Attachments

Capture.JPG (101.3 kB)