Print zero when blank?
With the DBText components I have the ability to select Blank when Zero. I
would like to be able to do the opposite, Zero when blank. Currently the
only way I know of to do this is to set the DBText component to autosize =
true and transparent = false and set a label component with the text 0 or
0.00 behind the DBText component. Is there a better way to do this?
would like to be able to do the opposite, Zero when blank. Currently the
only way I know of to do this is to set the DBText component to autosize =
true and transparent = false and set a label component with the text 0 or
0.00 behind the DBText component. Is there a better way to do this?
This discussion has been closed.
Comments
Inside the OnGetText event of the DBText component, try checking if the
field value is null. If it is, change the text value to 0.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com