Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EXTERNAL ARRAY use for reference
Message
De
09/03/2003 15:28:33
 
 
À
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:
00763457
Vues:
14
Hi Michel,

I think this may work, make a Global Object like:
public goCarrier
...
goCarrier = createobj('cCarrier')
...

Define class cCarrier as relation
dimension aArray(1)
aArray = ''

Function Init
  This.LoadArray
endfun

Function LoadArray
  Dimension this.aArray(xx,xx)
  ...
endfun
Then just change the references to gaArray to gaCarrier.aArray, VFP8.0 can help with the new CodeReferences tool.


Glenn


>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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform