Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any easy way to control ?
Message
De
22/04/2006 04:48:57
 
 
À
22/04/2006 01:12:22
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01115659
Message ID:
01115679
Vues:
8
>what should i use ?
>it is very tired for me to define different public variables in all forms
>because i duplicate forms and alter a little bit only.....

Avoid global variables! Use properties of your form. In stead of initializing the variable with
public gcVar1 && wrong way
gcVar1='abc'
you use
thisform.addproperty('Var1','abc')
Or you can use Form->new property in the designer.
To read and change the variable, you must add thisform. before the variable name
thisform.var1=10 && to change it
messagebox(thisform.var1) && to show it
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform