Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Method in Report
Message
De
15/04/2008 00:40:43
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01309629
Message ID:
01310618
Vues:
13
Jim,

this sounds much better. I use a single one public. This is the pointer to the application object. I'm working on it.

Agnes
>Agnes,
>
>PRIVATE variables are visible to the routine that creates them and all routines below that one in the calling stack. PUBLIC variables live beyond the end of the routine that creates them, that is the ONLY thing that PUBLIC causes is for the variablke to live beyoind the end of the program that created it and it is very poor design to require that a variable live beyond the life of the rountine that created it. It violates every tenant of programming from structured to OOP. No program should have a left over impact on the environment from which it was called other than the purpose for its existance. All programs should clean up any memory they use before they exit and PUBLIC variables are a direct violation of this principle.
>
>I have no problem condeming PUBLIC variables as they are the bane of all things good in program design.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform