Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CREATE CLASS alternative
Message
 
 
À
15/01/2002 14:22:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00604980
Message ID:
00605045
Vues:
23
>Certain ActiveX controls can only be instantiated within a form, which
>complicates things. Otherwise, SaveAsClass would be perfect.
>
>>You could also use the SaveAsClass method of the object. If you can instantiate the object, then you can use this method to save to a specified class library. You can also specify any comments you want to be associated with the class. Ex.
>>lox = createobject('myclass')
>>lox.SaveAsClass('NewClassLib','NewClassName','NewDescription')
>>
>>HTH.

ActiveX control subclasses are a PITA! You can't use this technique on them and you can't use Add Class on them either (most likely because VFP internally instantiates the object and issues its own SaveAsClass).
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform