GetText for a TLabel fire 3 times
Hi!
Yes, now I know that I must use TppVariable.
But that problem don´t happened in versions 9 and 10.
Now I buy the version 11.02 and the problem appear.
There are any way to make the my reports don´t do that?
I simply can´t review all my 615 reports one-by-one.
There are any way to force my GetTexts run once only?
HELP!
Thx,
Anselmo
Yes, now I know that I must use TppVariable.
But that problem don´t happened in versions 9 and 10.
Now I buy the version 11.02 and the problem appear.
There are any way to make the my reports don´t do that?
I simply can´t review all my 615 reports one-by-one.
There are any way to force my GetTexts run once only?
HELP!
Thx,
Anselmo
This discussion has been closed.
Comments
There is no specified number of times that OnGetText will fire in a report.
It fires whenever the Label.Caption or DBText.Text value is accessed. If the
report engine needs to check the value - for example for a group break, then
the event will fire. If you write code that access the Caption or Text
property, then the event will fire.
If you want to research why the event firing, add RBuilder\Source to your
Delphi library path and trace in the debugger. Put a break point in the
event and then examine the call stack when the debugger stops on the break
point.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com