Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find Undefined?
Message
From
11/07/2011 23:49:54
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01517924
Message ID:
01517933
Views:
51
I always found EXTERNAL ARRAY to be problematic. If you don't put exactly in the right spot, it doesn't work. And, you may have to put it in multiple places. IMO, a much better way is to specify the array PUBLIC is a dummy procedure, but never call dummy. This will cause the compiler to stop complaining while maintaining the variable scoping you want. I usually put the dummy procedure at the end of my Main.prg
PROCEDURE Dummy
PUBLIC ARRAY aPostedMaterials[2]
>In the procedure that uses this array add
>
>EXTERNAL ARRAY aPostedMaterials
>
>This is a compiler error and it can also be safely ignored.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform