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

Urgent - Global Variables in Crystal Reports

Status
Not open for further replies.
Feb 26, 2002
1
US
How do I declare Global Variables in Crystal Reports and one declared how will I be able to access and change the values of that global variable?
 
Any declared variable, unless declared with a different scope, will be global. See the formula examples in faq149-243 for examples of variables. Also, faq149-182 gives a good example of working with variables. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
The point of confusion for programmers is that a variable has to be declared in every function that uses that variable. No scope defaults to GLOBAL scope, and that variable can be used in several formulas to reset, save and display values.

CR is not VB. Write CR formulas the Cr way and they work brilliantly. Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top