Simplest thing and can't get it to work.
This doesn't work:
WhilePrintingRecords;
numbervar PlanCounter;
Global numbervar array PlanTotalArray;
Redim PlanTotalArray[PlanCounter];
This DOES work (but of course the project won't work this way):
WhilePrintingRecords;
numbervar PlanCounter;
Global numbervar array PlanTotalArray;
Redim PlanTotalArray[1];
[[I am sure there is a number in the PlanCounter variable as I am checking it before the code that runs. I am running the CR that is embeded in Visual Studio 9.0. PlanCounter is a Global variable in another formula, but I ran tests and I know it is populating correctly in this formula.]]
How can I set my array dimension using a numeric variable?
Scott
This doesn't work:
WhilePrintingRecords;
numbervar PlanCounter;
Global numbervar array PlanTotalArray;
Redim PlanTotalArray[PlanCounter];
This DOES work (but of course the project won't work this way):
WhilePrintingRecords;
numbervar PlanCounter;
Global numbervar array PlanTotalArray;
Redim PlanTotalArray[1];
[[I am sure there is a number in the PlanCounter variable as I am checking it before the code that runs. I am running the CR that is embeded in Visual Studio 9.0. PlanCounter is a Global variable in another formula, but I ran tests and I know it is populating correctly in this formula.]]
How can I set my array dimension using a numeric variable?
Scott