Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public Variable Losing Scope on Init of Form
Message
 
À
10/08/2001 01:40:19
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00541965
Message ID:
00542173
Vues:
29
Hi Nancy,

>>You should stay away from public variables altogether. Instead, make them properties of your application object.
>
>Which of course would be a public variable...< beg>

Not neccesary.

I've got my oApp tied to _SCREEN, so all my calls are _SCREEN.oApp.xxxxx

Whenever VFP6 clears all its (global) variables when certain errors occur (I've seen it occur) at least my oApp is still there because it is not a (global) variable but a property/object of _SCREEN.

Regards,
Frank Camp
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform