Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters to reports in VFP 3.0
Message
De
04/09/1998 08:58:29
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00131749
Message ID:
00133199
Vues:
26
>>There are a few public vars that I will keep in my reports - it's the user company header (name, address, phone etc) which is the same throughout the app. OTOH, this is where OOP reports would play nice - if I could have a standard report heading object, I'd construct it once, keep it as a member of the goApp, and simply reference it on every report.
>
>Dragan,
>
>My point is that those variables do NOT need to be public, they can be private to the startup program and they can be seen and used by everything in the application.

Of course. I'm making them public just for convenience - I set them up in a custom .prg which actually reads the config tables, so it's lot easier if it's not contained in the main prg. I just like to keep the main as short as possible. Anyway, I don't see much difference between these two. Is there any, apart from getting a syntax error if you try to re-declare one of main.prg's variables Public?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform