Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compile error
Message
From
27/04/2001 16:12:54
 
 
To
27/04/2001 16:08:36
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00501015
Message ID:
00501019
Views:
22
>I periodically use arrays within reports for added flexibility. These arrays are generally declared private in the source that runs the report. When I compile I get a compilation error stating that the array is not defined. This doesn't affect the runtime app, but does annoy me to see errors during compilation. Several years ago I talked to Drew Speedy at DevCon '96 about this and he gave me an answer that worked, but for the life of me I cannot remember how this was done.
>
>Any help will be appreciated.


I don't know what Drew said, but this will work:

1. At the bottom of your MAIN.PRG, create a procedure called DUMMY
2. Define each array like: PUBLIC MyArray[1]
3. You *never* call this procedure, so it doesn't affect runtime. It's sole purpose in life is to get the compiler to shut up.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform