Information générale
Catégorie:
Programmation Orientée Object
Hi Jim...
>>I meant dynamically, with VFP6's new AddProperty feature.
I figured that is what you meant. However, AddProperty does not work on a class that has a public interface in a COM Object.
>John,
>I meant dynamically, with VFP6's new AddProperty feature.
>
>Cheers,
>
>Jim N
>
>>Hi Jim...
>>
>>>Couldn't one also code to add a property if a new field was detected six >months later?
>>
>>Sure, but that requires recompilation of the business object. I think what Jim B. is getting at deals with encapsulation. With a method, you can write generic code - perhaps to to serve up an ADO recordset. It would be up to the client application to specficially deal with the new field.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement