Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access Method
Message
De
19/12/2019 20:47:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
01672305
Message ID:
01672333
Vues:
98
>I looked at the VFP 9 help but the explanation of Access method is not easily understood. Could someone explain the purpose, the use, and advantages of using the Access Method (e.g. something_Access).
>
I use Access and Assign methods in custom classes. The control or container class can have multiple objects and I might want to get the value from one of the contained objects such as a textbox. In a control class the textbox is not visible outside of the class. So I define a property with the Access and/or Assign method. Then in the Access method I can return the value of the textbox. Similarly I can use the Assign method to assign an initial value to the textbox at run-time.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform