increment number
Hello
I would like to increment a number which defined in subreport; it is a label
and on OnGetText, I have: text:=InToStr(StepNb)
StepNb:=StepNb+1;
But when I move in my preview, this number is increased correctly for the
first time. When I circulate in the document and I return where the number
appears, the value is incorrect (superior value).
Could you help me, please?
Thanks
Best regards
--
R?gine LEBRETON
JOUVE S.I.
Immeuble Hercule II
12, rue des Landelles
35510 Cesson-Sevigne
FRANCE
Tel: +33 (0)2 99 86 98 16
Fax: +33 (0)2 99 86 98 01
eMail: rlebreton@rennes.jouve.fr
The present email and all information included therein do not constitute a
legal agreement accorded by Jouve.
All legal agreements must be formulated in writing on paper by a legal
representative of JOUVE.
If you have received this email by mistake, please inform us of that fact
and destroy the email and any documents it might contain. Thank you for your
cooperation.
I would like to increment a number which defined in subreport; it is a label
and on OnGetText, I have: text:=InToStr(StepNb)
StepNb:=StepNb+1;
But when I move in my preview, this number is increased correctly for the
first time. When I circulate in the document and I return where the number
appears, the value is incorrect (superior value).
Could you help me, please?
Thanks
Best regards
--
R?gine LEBRETON
JOUVE S.I.
Immeuble Hercule II
12, rue des Landelles
35510 Cesson-Sevigne
FRANCE
Tel: +33 (0)2 99 86 98 16
Fax: +33 (0)2 99 86 98 01
eMail: rlebreton@rennes.jouve.fr
The present email and all information included therein do not constitute a
legal agreement accorded by Jouve.
All legal agreements must be formulated in writing on paper by a legal
representative of JOUVE.
If you have received this email by mistake, please inform us of that fact
and destroy the email and any documents it might contain. Thank you for your
cooperation.
This discussion has been closed.
Comments
Try setting the Report.CachePages property to True and see if that helps.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com