Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global Variable NOT!!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01111807
Message ID:
01111816
Vues:
30
>Declaring isn't enough - the variable must also be initialised, as in:
>
>
>PUBLIC glVar
>glVar=.f.
>
Hi Matt,

I agree that it's a good practice to initialize variables explicitly but the PUBLIC variables are initialized with .F. when they are declared. The same as LOCAL variables. I think you confused them with the PRIVATE statement. It doesn't create any variables but hides the once listed in it if they already exist up the calling chain.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform