>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