Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local vs Private
Message
De
03/02/1999 00:30:31
 
 
À
02/02/1999 22:35:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00183225
Message ID:
00183301
Vues:
18
Thanks - I know it sounds simple, but I couldn't find the explanation in the manual.

>David- also note that unless you explicitly declare a variable as local, it will default to private.
>
>
>>Local variables are available only in the module (program, procedure, function, or method) that creates them. Private variables are available to the module that creates them and any module "below" that module in the calling stack. That means that if you declare a private variable in program a and program a calls b and b calls c, it will be available to a, b, and c.
>>
>>You should try to use local variables whenever possible. This allows you to seperate the logic of each module and makes your code a lot easier to read.
>>
>>>What's the difference between 'Local' and 'Private' variables and what are the relative merits of both?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform