Results 1 to 3 of 3

Thread: Declaring variables in Crystal Reports

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    4

    Declaring variables in Crystal Reports

    How do you declare a variable with a report-wide scope in crystal reports ?

    Thanks in advance.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    4

    Wink

    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!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width