Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to know, if variable global or private
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00625378
Message ID:
00625403
Vues:
9
>>Hi everybody,
>>
>>Here is a problem. I have a report, which uses NumPages variable. I declare this variable as private in the calling method. However, this report could be run from different program, so in this case I currently don't see a way except for declaring this variable as public. However, I want to release it, if it was public and not release it, if it's private.
>>
>>Is it possible or I should think about some other solution...?
>
>Can you define the variable private in the other program too?

Unfortunately not, because in other case this program is called by Reporter. In the first case I have a form, which calls a DraftPrint program, then report.
In the second case I have Reporter applicaiton, which does evaluate(InitExp). In InitExp I have DraftReport(). However, I don't have NumPages variable defined before and there is no sense to define it here as Private. Since I got Nick's reply later, I decided to use our global object properties instead... It was hard to figure out, which property to use...

Anyway, right now I'm testing... And it's working! :)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform