Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A basic thought about LOCAL variables
Message
 
À
28/12/1999 18:06:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00309158
Message ID:
00309659
Vues:
29
>Hi Jim,
>
>>The private one is released when AProc terminates, that is the difference.
>
>Sorry if I'm not getting it. The PUBLIC is seen by the calling procedure and the PRIVATE is not while APROC is still living (which can be tested using the locals window while stepping through the code I provided). Why is that not a different difference?

Mike,

If AProc is running the private exists. I have no idea how you can see memory for the calling procedure while Aproc is still running. If Aproc is running then the calling procedure is not running, VFP is single threaded. When aproc is finsihed and control returns to teh calling procedure the private variable will no longer exist.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform