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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Global Variable

Status
Not open for further replies.

brittoalexis

Programmer
Dec 16, 2001
32
0
0
IN
Hi,

I am using a variable as Global numbervar EndBalance in one formula field.

I wanna use it in other formulae. How can i achieve this.

Thanks
 
Global numbervar EndBalance := <somevalue>

Where somevalue = a table.field, or a number, or the result of another formula.

Group Header:
whileprintingrecords;
Global numbervar EndBalance := 0

Details Section
whileprintingrecords;
Global numbervar EndBalance := EndBalance+{table.numericfield}

Group Footer:
whileprintingrecords;
Global numbervar EndBalance;
EndBalance

Would display the sum of a field for each group in the group footer.

Posting example data and formulas used, and what you intend to do will net the best results.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top