Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an array to a form
Message
De
30/06/1999 08:32:02
 
 
À
30/06/1999 02:07:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00235291
Message ID:
00235794
Vues:
21
>Yeah, I knew there was a simple solution, it just was eluding me. JimB pointed out to me the fact that DO's are ByRef by default and that escaped me somehow. BTW, in your example, you were using an "l" as the prefix for your array....how can it be "l" if it's being passed off? My turn for the evil grin :-)

Actually, I think "l"is still te right prefix. (Am open to argument though). The LPARAMETERS statement in the form init creates a new local name for the variable. We then have actually two faces for he same variable. If I call the array something different in the init, the example still works. Even changing the contents of the newly named array in the form::init changes the contents of the original as well. Neither is the original array in scope from the init statement, nor the new one in scope for the calling procedure. I think that makes them both local.

Hence "l" is the correct prefix.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform