Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there any easy way to control ?
Message
De
22/04/2006 12:58:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
22/04/2006 00:51:58
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:
01115705
Vues:
6
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform