RB 6.03 Custom Tppvariable
Hello All:
I created my own DBText component by overriding the OnGetText method. I
inserted 2 Properties for formatting ( an Uppercase for strings and a
ZeroDisplayFormat for numeric values ie N/A for zeros ).
I need to do the same thing for a tppVariable - I want an Uppercase
function and I want a ZeroDisplay function.
How can I do this ???
I played around with the OnGetText but am getting inconsistent results
( ie sometimes it works N/A - sometimes it is ignored - sometimes it does
N/A when a value exists ). I used the same "New" code that works great in
the TppDBText clone.
Any pointers ???
Thank you.
Neil Huhta
I created my own DBText component by overriding the OnGetText method. I
inserted 2 Properties for formatting ( an Uppercase for strings and a
ZeroDisplayFormat for numeric values ie N/A for zeros ).
I need to do the same thing for a tppVariable - I want an Uppercase
function and I want a ZeroDisplay function.
How can I do this ???
I played around with the OnGetText but am getting inconsistent results
( ie sometimes it works N/A - sometimes it is ignored - sometimes it does
N/A when a value exists ). I used the same "New" code that works great in
the TppDBText clone.
Any pointers ???
Thank you.
Neil Huhta
This discussion has been closed.
Comments
The TppVariable component contains a bunch of timing routines that you may
need to be aware of. Be sure that it is reseting at the right time during
generation. Also, be sure the OnGetText is only firing once per traversal
(or per time you are displaying the text). The most productive way to solve
this issue would be to step through your new code and find out exactly where
the values are comming from inside the RB source. This should help you
understand how the TppVariable is reacting to your new code.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com