Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a value from a class form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00579966
Message ID:
00581953
Vues:
47
>Sometimes a PUBLIC variable is necessary. For instance, if we "hard-code" our forms, it always seems that runtime won't byte until it is declared public. I wish someone could show me the light on that one! I am *slowly* moving to class containers for PUBLIC variable management. I am probably using 8 or 10 percent of the total paradigm - and still I suufer from synaptic overload. Maybe if I double up on my Gingko, it would move to 12%:-).

Terry,

With a start up orogram and a read events it is never necessary to use a public variable;
* Start up program
loForm = CreateObject("MyForm") &&loForm is private
READ EVENTS

DEFINE CLASS MyForm AS Form
* Do your "hard coded form here
* be sure to CLEAR EVENTS in the destroy event

ENDDEFINE
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform