Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define Variable In Form
Message
From
01/09/2000 05:32:46
 
 
To
01/09/2000 04:54:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00411598
Message ID:
00411635
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform