Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Calculated Variable - setting to blank when zero

edited December 2001 in General
Hi,

When I was using a sum variable, there was an option to have a blank if the
result is zero. However in a calculated variable there is no option for
this. What is the best way to achieve this, DisplayFormat maybe?

Thanks

Alex

Comments

  • edited December 2001
    In the variable's OnCalc event, you can set its visibility.
    if Value = 0 then

    Variable1.Visible := False

    else

    Variable1.Visible := True;


    We usually recommend that the visibility of components be set in the band's
    BeforePrint event, but in this case, the OnCalc would be the only timing in
    which you could set the visibility for the variable.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.