Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interview question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01543887
Message ID:
01543924
Views:
68
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform