Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope in VFP
Message
De
28/07/2006 11:53:34
 
 
À
28/07/2006 11:27:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
Visual FoxPro
Divers
Thread ID:
01141152
Message ID:
01141187
Vues:
33
PUBLIC: These are global variables and are visible everywhere. Not recommended for OOP.

PRIVATE: Visible to the routine where declared and all routines that it calls.

LOCAL: Visible only to the routine where declared.


I agree with Cetin. Only using LOCAL is a good idea.


>Hi Everyone:
>
>Does anyone have a good site that gives a basic description of using variables in foxpro (specifically scope). i don't have a good understanding of it and have often had it happen where the variables are not available to other parts of my code. therefore, since i'm not building apps for broad distribution but only for my company, i use public variables. i have heard that this is a big no no (especially when computers weren't as fast as they are now), but i don't run into problems but want to be able to stop it before i do.
>
>i remember also a website that has a video describing scope but can't find it. any suggestions? thanks,
>
>paul
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform