Information générale
Catégorie:
Gestionnaire d'écran & Écrans
PMFJI (But I've had this discussion Twice this week, so :-)
>>It is never necessary to declare a variable public in the main start up prg of an app. A private is globally visible to the entire application.
>... I don't understand what you want to say here. Sorry.
A PRIVATE declared in the very first routine is available to every other Routine/Method/Menu command/Report in the app. That makes it global, but is not declared PUBLIC, so your other statment:
>>So when is a var required to be public?
>Only when its real scope is over the entire application.
Is not true either if the varaible was declared public in the main program.
Précédent
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