Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access Method
Message
From
19/12/2019 20:47:07
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
01672305
Message ID:
01672333
Views:
99
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform