CodePudding user response:
Variables can be invoked and forms of interaction, in print in print before the event can also add the code to modify the variable's value,CodePudding user response:
QryReport. SQL. TEXT:='Select 0 AS' + QuotedStr (' number ') ', t. * FROM Select queries (you) T ';.
=====================
In the query to increase an initial value of 0
the serial number fieldQryReport. Write code AfterOpen event:
QryReport. FieldByName (' serial number). OnGetText:=MyIDNum;
In the process of writing: MyIDNum join:
If (your judgment conditions) then
Text:=IntToStr (INC (YOURVar));
CodePudding user response:
Every time when printing a number + 1 call the next time value