Or optionally, create code that will never be executed. Put this at the end of Main.prg
PROCEDURE Dummy
PUBLIC Results[1, 2]
ENDPRC
There is never a call to dummy, so the PUBLIC array will never be created, but the compiler stops complaining.
>
I am getting this compile error:
>>Program c:\gtb\part5.prg has the following errors:
> Unknown RESULTS - Undefined
>
>Even though 'Results'is defined in a previous PRG. Here is that code.>
>You need to trick the compiler. Sometimes it's enough to use these brackets: []
>
>but You will probably need the following section in the PRG that uses the array without defining it
>
>
>if .T. and .F.
> define Results[39,2]
>endif
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer