Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there any easy way to control ?
Message
From
22/04/2006 12:58:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/04/2006 00:51:58
Hee Lim Wang
Fantasy Software Enterprise
Malaysia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01115659
Message ID:
01115705
Views:
7
>another thing !
>how about all froms having same public variables ?
>i want public variable "XXX" in form "A" does not interfere the
>public variable "XXX" in form "B".......

A form property is the appropriate thing. It is somewhere in between a local/private variable and a public variable: It is available from any method within the form, but it can't be easily accessed from an other form.

For example, one form uses ThisForm.MyProperty, and another form also uses ThisForm.MyProperty. MyProperty is two different things - in each case it refers to the current form. In other words, each form has its own copy of the property.

By the way, you create the property with the command Form - New Property. You can also use the following command in the Init() method:
ThisForm.AddProperty("MyProperty")
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform