Hi
I have a report that uses Global variable.
I have this formula in the detail section and it does work fine
***********************************
@Hi-Lo
global numberVar HiSal := 0;
global numberVar LoSal := 0;
if HiSal = 0 then (
HiSal := {Employee.Salary};
LoSAl := {Employee.Salary}
Else If {Employee.Salary} > HiSal then
hiSal := {Employee.Salary}
else if {Employee.Salary} < LoSal then
loSal := {Employee.Salary}
*********************************
Now i create this one and place it in the group footer
and want the Hi sal displayed but it return 0
****************************
@HiVal
Global NumberVar HiSal;
HiSal
************************
Can some on thel me whats worng
why it return 0 instead of the hi sal
thanks
pg
pgtek
I have a report that uses Global variable.
I have this formula in the detail section and it does work fine
***********************************
@Hi-Lo
global numberVar HiSal := 0;
global numberVar LoSal := 0;
if HiSal = 0 then (
HiSal := {Employee.Salary};
LoSAl := {Employee.Salary}
Else If {Employee.Salary} > HiSal then
hiSal := {Employee.Salary}
else if {Employee.Salary} < LoSal then
loSal := {Employee.Salary}
*********************************
Now i create this one and place it in the group footer
and want the Hi sal displayed but it return 0
****************************
@HiVal
Global NumberVar HiSal;
HiSal
************************
Can some on thel me whats worng
why it return 0 instead of the hi sal
thanks
pg
pgtek