Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A basic thought about LOCAL variables
Message
De
28/12/1999 22:47:40
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00309158
Message ID:
00309672
Vues:
32
Ok, Recapp-

You: PUBLICs and PRIVATEs are the same except PRIVATEs only live until the end of the routine that created them. This is how PUBLICs can be seen be anything, they never die.

Me: Once a PUBLIC is created, it can be seen by any program, that includes the programs which called the program that created it. PRIVATEs cannot, they are seen at the level they created and down.

At first our statements don't look different, but I keep adding that while both a PRIVATE and PUBLIC created by the same routine is in scope, only the PUBLIC can be seen above the calling program. This cannot be tested in code, but can be tested in the debugger using the Locals Window.

That is your difference. Is it relevant in anyway to your code? Probably Not, but that is how it works.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform