How do you declare a variable with a report-wide scope in crystal reports ?
Thanks in advance.
Printable View
How do you declare a variable with a report-wide scope in crystal reports ?
Thanks in advance.
Declare the variable with Global scope and repeat the declaration in every formula that uses the variable.
Global stringVar strTesting;
Global scope applies only to the report where it is declared. You need to use Shared scope if you want the variable to be available across all sub-reports as well.
lol
Actually I figured it out about 1/2 hour after I posted the msg;
The book I was looking up was useless (about a page and a half defining what variables were, no implementation whatsoever) and the Crystal Reports Help was, errr, no help (non-existant, only described the functionality of the windows and tools).
I wasn't until somebody got me a Crystal Reports 8 book, that I managed to look it up. Pretty simple once you know how, I guess...
Thanks anyway for the help!
:)