Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How does method of class reference property of the class
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01501513
Message ID:
01501514
Vues:
47
>I am defining a non-visual class.
>I define properties and procedures of this class.
>
>I instantiate an object based on that class.
>
>1. How does code in a procedure of the object refer to properties of the object?

with this
.PropertyOne = 'Something'
endwith

>
>2. Can a procedure in the object call a form, and then have the form store values into properties of the object ? How?
>
?

>3. Can that procedure pass to a form a reference to the object, with which the form can access the properties of the object?
>
do form myForm with this

Save the reference in the Init of the form and then form can access properties of the object and its methods
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform