Printing a zero when field is null
Hi.,
I am using D5 and RB7.0.
I am having trouble getting a field on my report to print a '0' when the
field is null. I have tried setting the DisplayFormat of the dbtext
component to '0' but this doesn't seem to work. But on other fields it does
seem to work.
Is there some trick here or something that I am missing?
Thanks for any help.
Matthew Pascoe
I am using D5 and RB7.0.
I am having trouble getting a field on my report to print a '0' when the
field is null. I have tried setting the DisplayFormat of the dbtext
component to '0' but this doesn't seem to work. But on other fields it does
seem to work.
Is there some trick here or something that I am missing?
Thanks for any help.
Matthew Pascoe
This discussion has been closed.
Comments
This is the default behavior of the DBText field. I too experienced the
problem and built my own descendent of TppDBText. If you want it drop me an
email.
Neil
what i do is have the db control and a label.
the db control visible is false and the label visible is true
i populate the label with the data from the dbcontrol
with an if statement thrown in to populate the label with
a 0.00 if the field is null.
that is the easiest way around this problem.
Matthew
transparent property to false and make sure that autosize is set to true.
If there is no data in the DBText it will resize to nothing and display the
label behind it!!!
good job