Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define Variable In Form
Message
De
01/09/2000 05:32:46
 
 
À
01/09/2000 04:54:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00411598
Message ID:
00411635
Vues:
13
Yungkie,

Do the following, which will add a new property to the form, which isn't connected to any control on the form:

1 Open the Form in the designer.

2 Select Form from the menu, then New Property

3 Type the name of the property, which is your variable name, ie pcTeks

4 If you look at the Properties of the form, you'll see your property at the very end of the Other tab.

5 In the Load method of the form, add the following:

THIS.pcTeks = "Hallo"

6 In the UInLoad method of the form, add the following:

WAIT WINDOW THIS.pcTeks

When you close the form, the WAIT WINDOW should appear. The thing to bear in mind the Visual FoxPro is that variables aren't used quite in the same way as in the previous version, custom properties are used to hold values.

It's a slightly different way of thinking, using custom properties instead of variables.

Andy Crawshaw
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform