>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao