Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EXTERNAL ARRAY use for reference
Message
De
09/03/2003 13:55:07
 
 
À
09/03/2003 13:45:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00763449
Message ID:
00763450
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform