Well, I'll expose exactly my intention.
I am trying to elaborate a dinamic report that at the end shows a summarize of chapters. Each chapter is related to a header in a report. This means that every time this header is executed, I store a name in a colletion variable. For example, lets say that this header shows the footbal team name and the body of the report within this header are the costs of many things. Then, the cuestion is that at the footer report, that is the last page, I want to show a summarize showing only the name of each team followed by the total cost. Each one in an independient line.
I thought that I should to have an array of "Label" variable dimensionated depending on the number of Teams. The problem is that an error appear.
How should I tackle this?