sorry about that. I meant that it is a global variable (no subreports are involved and they are explicity declared global.. crystal v.9) I have two formulas in 2 detail sections.
---------------------------------------------------------
Formula 1: {@CalcSeqNo}: sitting in detail section A
WhileReadingRecords;
Global NumberVar SeqNo;
Global StringVar Category;
Global StringVar InvoiceId;
Local StringVar CurrentCategory;
Local StringVar CurrentInvoice;
if IsNull({Command.InvoiceId}) then
CurrentInvoice:= "none"
else
CurrentInvoice := {Command.InvoiceId};
//if InvoiceId <> CurrentInvoice then
// SeqNo:= 1
//else
SeqNo := 1;
//se
// SeqNo:= SeqNo + 1;
INvoiceId := CurrentInvoice;
---------------------------------------------------------
Formula 2: {@SeqNo}: sitting in detail section B
WhileReadingRecords;
Global NumberVar SeqNo;
SeqNo;
-----------------------------------------------------------
As you can see in my code, I have even commented out all logic and assigned SeqNo:= 1, but that {@SeqNo} still came evaluated to 0.
Thanks,
Roland Whitley