Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement