Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement