Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public or Private
Message
De
29/09/1997 23:22:38
 
 
À
29/09/1997 23:19:32
Andy Roth
Neyenesch Printers
Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00052342
Message ID:
00052343
Vues:
41
>I have been told that any variable in a program (*.prg file) is
>private unless declared as public. Is this true? Variables I make
>are always declared as private and if the above statement is true
>it would save some work making sure every variable is accounted for
>and is private. I am working inside someone elses application writing
>reports and I want to be sure.

A variable inside a program will be seen under this hierarchy.

A variable inside a method or event will only be seen in the actual method or event.

But, if you declare it public, it will be seen in the entire application.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform