First, it's just a warning. The application will run fine. However, I'm in the camp that warnings are errors.
In your main.prg, add the following:
PROCEDURE Dummy
PUBLIC ARRAY aLastProducts
Don't ever call the procedure. It's simply there to get the compiler to shutup.
>I have a bunch of reports that are using an array, 'IALASTPRODUCTS', as the field expression
>for the data.
>
>I know I need an EXTERNAL command, but where's the best place to put it? I tried EXTERNAL
>ARRAY ALASTPRODUCTS in the main.prg, but I still get the error when I rebuild the project.
>
>Thanks
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer