Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where Should Public Variables be Placed
Message
De
18/06/2013 05:52:28
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
18/06/2013 00:02:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01576563
Message ID:
01576600
Vues:
50
>>Local should work, but in case there may be problems, you can declare variables private.
>
>Basically it all depends on in what context the REPORT FORM command is executing. If it operates within the context of the method/procedure in which it is executed, then the variable will be "visible". Declaring them to be PRIVATE would be more likely to work than LOCAL -- I would lean toward using PRIVATE to allow for the possibility of a pre-processing or post-processing stage (in which case, a new call level would likely occur -- causing the LOCAL variables to become hidden).

And then there's the issue of all the code snippets within the report, which may want to use some of these variables. My hunch is that they wouldn't see the locals.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform