Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using program variables in forms
Message
De
28/11/2003 08:03:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00853514
Message ID:
00854175
Vues:
21
Hi,

>>If the program launches the form then, providing the program variables are >>not LOCAL, they will be visible within the form.

>Actually, that's not true. Private variables would be visible in form's >Load, but they would not be visible in Form's Init and other methods... It >might depend on form's modality, though.

Hmmm....
PRIVATE myVar
myVar = 4
oForm = CreateObject("MyForm")
oForm.Show()
READ EVENTS

DEFINE CLASS MyForm as Form
PROC INIT()
This.Caption = myVar
ENDPROC
PROC UNLOAD()
CLEAR EVENTS
ENDPROC
ENDDEFINE
Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform