Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encapsulation problems
Message
From
03/06/1998 01:18:40
David Moreau
Iglesia Ni Cristo - Dnm
Quezon, Philippines
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Encapsulation problems
Miscellaneous
Thread ID:
00104274
Message ID:
00104274
Views:
72
I have found it very difficult to create classes in VFP 5.0.

My first difficulty is using protected methods and properties. I find myself unable to access these functions and properties from instantiations of the class. Is this correct behavior? Is this reaasonable behavior? I often find myself declaring properties and methods public, even when they should not be.

My second difficulty concerns using an array in a class. In my case, this array is a hash table to the data in the ComboBox. Since there may be multiple instances of the class, and since the hash table is specific to the particular instance, the class should contain the array. What is an elegant way of hiding an array inside a class such that each instance of the class has its own distinct instance of the array.


This is my first day in Universal Thread and I am still learning how to better navigate my way. Please forgive me if these questions are already answered in some area that I have not yet found.
David Moreau
Next
Reply
Map
View

Click here to load this message in the networking platform