Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public Variable Losing Scope on Init of Form
Message
De
09/08/2001 16:06:49
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00541965
Message ID:
00541992
Vues:
31
>>A public variable is available in the form called by a program. When that form calls a second form, upon entering the Init, it loses scope. The second form uses local parameters, but none are named the same as the public variable. Any ideas?
>>
>>Regards, Renoir
>
>You should stay away from public variables altogether. Instead, make them properties of your application object.

Yeah, I agree totally, but this is a legacy app that I'm just trying to get functioning at the moment. Funny you mentioned that as we just discussed what it would take to move all the variables (the many, many variables) that are declared public in the app to our oApp object. Thanks for the advice...

BTW, nice site...

Renoir
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform