我想将值放入共享数组中,并将其打印到详细信息部分的另一个子报表中,以逐个打印数组的每个值。
我已经谷歌了,但我似乎没有得到正确的答案。
这是代码:
// 1st Sub Report
WhilePrintingRecords;
shared numberVar array Totdepot;
Redim preserve Totdepot[UBound(Totdepot)+1];//more space added to array.
Totdepot[UBound(Totdepot)+1]:={dtSumDe… + {dtSumDealer2.inv_depot2} + {dtSumDealer2.inv_depot3} + {dtSumDealer2.inv_depot4} + {dtSumDealer2.inv_depot5} + {dtSumDealer2.inv_depot7} + {dtSumDealer2.inv_depot6} + {dtSumDealer2.inv_depot8} + {dtSumDealer2.inv_depot9};
// 2nd Sub Report
WhilePrintingRecords;
shared numberVar array Totdepot;
Totdepot
我正在尝试打印数组的第二个值,但它仍然不起作用。错误显示:“运行总计不能引用打印时间公式”或“公式的结果不能是数组”