Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interview question
Message
De
21/05/2012 10:31:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01543887
Message ID:
01543924
Vues:
70
My first response would be something along the lines of "Why would I want to do that? If a variable needs to be unaccessible from a subroutine, then I probably need to rethink either the subroutine or the public/private aspect of the variable or the naming of the variable in the subroutine."


>*Interview question
>
>"PubVar" public variable is declared in the main prg.
>
>Public PubVar
>PubVar=2
>
>
>Then the subroutine prg is called. How to make PubVar hidden and not accessible there?
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform