Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope of variables
Message
De
14/09/1998 10:43:14
 
 
À
14/09/1998 09:15:32
Fausto Garcia
Independent Developer
Lima, Pérou
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00136116
Message ID:
00136177
Vues:
16
>Hi to all
>
>Can somebody tell me which is the scope for the memory variables created with commands such as SCATTER MEMVAR and DIMENSION?
>
>For example, I have some forms that perform a SCATTER MEMVAR from a table in the INIT method of the form, but the methods of the rest of the components of the form (buttons, edit boxes etc) do not seem to "see" the memory variables created with SCATTER.
>
>Is there a way to force those commands to create PUBLIC variables?
>
>Thanks for your help


They are PRIVATE. To make them PUBLIC, declare the variables as PUBLIC before you use them.

PUBLIC Field1, Field2, MyArray[12]
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform