Information générale
Catégorie:
Programmation Orientée Object
That's what I thought. But it's nice having a really cleanskin class, and typically the sort of thing my "observer" is looking at are tied to field values anyway.
>I don't think that there's a way. The objects created with SCATTER NAME don't even have a name property, and don't have an AddProperty method. To create an object with CREATEOBJECT or ADDOBJECT, you have to specify a class, and these objects are not deerived from any class. Interesting though, they can be passed through the COM interface (like returned from a VFP COM object to an ASP).
>
>
>
>>Just for interest, I've been playing with the classes created by..
>>SCATTER NAME
>>The object so created doesn't have a baseclass, class etc. Just the user defined properties. NICE.
>>However the only way I can figure to create one of these beasties is via the SCATTER NAME approach. Is there any other way? Anyone?
>>So I pass this classless class as a parameter to my "observer" class in the init event. The "observer" updates it's properties *quickly* and easily then from the class that it's observing (usually a form).
>>
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