Hello
Just a quick query basically I want to know how to create a global array to store data which I can then use in the evalute part of a running total formula to search and see if I need to add amount to the total. However struggling to create an array.
So far I put to in my consolidated invoice array formula which utilimately store all consolidated invoices references just some test data. See below
WhilePrintingRecords;
Global StringVar Array ConsolidatedInvoices;
ReDim ConsolidatedInvoices[5];
ConsolidatedInvoices[1] = "TEST1";
ConsolidatedInvoices[2] = "TEST2";
ConsolidatedInvoices[3] = "TEST3";
ConsolidatedInvoices[4] = "TEST4";
ConsolidatedInvoices[5] = "TEST5";
However when I come to display the first element of the array with another formula I get an subscript error.
Below is the display formula
//@Display
whileprintingrecords;
Global StringVar Array ConsolidatedInvoices[1];
Any help will be gratefully received because util can successfully create an array can't begin the next phase of my problem.
Cheers
Just a quick query basically I want to know how to create a global array to store data which I can then use in the evalute part of a running total formula to search and see if I need to add amount to the total. However struggling to create an array.
So far I put to in my consolidated invoice array formula which utilimately store all consolidated invoices references just some test data. See below
WhilePrintingRecords;
Global StringVar Array ConsolidatedInvoices;
ReDim ConsolidatedInvoices[5];
ConsolidatedInvoices[1] = "TEST1";
ConsolidatedInvoices[2] = "TEST2";
ConsolidatedInvoices[3] = "TEST3";
ConsolidatedInvoices[4] = "TEST4";
ConsolidatedInvoices[5] = "TEST5";
However when I come to display the first element of the array with another formula I get an subscript error.
Below is the display formula
//@Display
whileprintingrecords;
Global StringVar Array ConsolidatedInvoices[1];
Any help will be gratefully received because util can successfully create an array can't begin the next phase of my problem.
Cheers