>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
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