Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXTERNAL ARRAY use for reference
Message
From
09/03/2003 13:55:07
 
 
To
09/03/2003 13:45:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00763449
Message ID:
00763450
Views:
18
This message has been marked as the solution to the initial question of the thread.
>I have a global array such as gaMonth defined at the framework level. At several occasions, I am using a reference to that variable. In order to avoid error at compile time, I have to add EXTERNAL ARRAY gaMonth in a multitude of PRGs. Is there a way to do better?

Michel,

I do not know whether it is better or not, but you can do the following

- Create a dummy prg
- add it to the project
- exclude it from the project and do not set procedure to it
- add as many lines to the program as you have global arrays

the program looks like this
&& dummy program
function gaMonth()
function gaYear()
...
The result is that the compiler will find a function gaMonth() and will not complain

Think I owe credit to Fred Tayler's posting something similar in the newsgroup
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform