Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CREATE CLASS alternative
Message
 
 
To
15/01/2002 14:22:35
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00604980
Message ID:
00605045
Views:
24
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform