More about calculations
The same report:
In the footer group and summary bands i have the same structure:
var1 var 2 var3
var1 and var2 are already calculated, now i need to made var3=var1/var2,
only if var2 <> 0. I already have the calcOrder set to 0, 1 and 2
respectively.
In the OnCalc of var3 i have:
if var2.value <> 0 then
var3.value := val1.value/val2.value
else
var3 := 0.
But val3 is always set to cero, even when val1 and val2 are <> 0. What
settings (timing) must have val3 and how can i achieve what i need?
thanks again
--
Guillermo Castaño Acevedo
Gerente de Sistemas - Grupo Millennium Ltda
GuillermoC@GrupoMillennium.com
www.GrupoMillennium.com
In the footer group and summary bands i have the same structure:
var1 var 2 var3
var1 and var2 are already calculated, now i need to made var3=var1/var2,
only if var2 <> 0. I already have the calcOrder set to 0, 1 and 2
respectively.
In the OnCalc of var3 i have:
if var2.value <> 0 then
var3.value := val1.value/val2.value
else
var3 := 0.
But val3 is always set to cero, even when val1 and val2 are <> 0. What
settings (timing) must have val3 and how can i achieve what i need?
thanks again
--
Guillermo Castaño Acevedo
Gerente de Sistemas - Grupo Millennium Ltda
GuillermoC@GrupoMillennium.com
www.GrupoMillennium.com
This discussion has been closed.
Comments
the variable, otherwise you'll always see zero.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
OnTraversal works perfect.
thanks