Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global variable return Zero

Status
Not open for further replies.

pgtek

Programmer
Sep 28, 2001
1,180
CA
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
 
hi
Sorry got it resolve

thanks

pg

pgtek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top