Hello David,
>I have found it very difficult to create classes in VFP 5.0.
I thibk that creating classes is MOST wonderful thing that I know ;)
>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
PROTECTED members can be accessed only from methods of this class. You can't use
them from outside.
>properties and methods public, even when they should not be.
In such a cases, create a method to SET/GET a value of these properties.
>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.
Just create a property that is array actually.
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer