Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local vs private
Message
De
11/08/2005 04:59:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/08/2005 03:49:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01039725
Message ID:
01040116
Vues:
22
>Hi,
>
>>>I don't use any PUBLIC variables. In my Main.prg, I create a PRIVATE var,
>
>So what's the difference between a PUBLIC var and a var declared as PRIVATE at the top level ?
>
>Regards,
>Viv

One difference comes to mind - goApp loses being immune to "release all" command if declared as PRIVATE. ie:

*Main1.prg
PRIVATE goApp
*...

*Some procedure
release all && goApp is released - wouldn't if declared as PUBLIC w/o extended clause

IOW I'm with you. I declare it as PUBLIC if not using Application object instead.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform