General information
Category:
ActiveX controls in VFP
>I've subclassed the RTF box 6.0 SP2 (IIRC) as olecontrol. Worked fine, as usual.
>
>Then I needed it in another project, and simply wanted to do ADD CLASS myrtf of mylib to \path\otherlib. I got an error sayin "class invalid for this container", which is an error you get when you want to, say, add a toolbar to a container, or a formset to a form.
>
>OK, no big deal, the class had no more than ten properties non-default and no code at all, so it was quite easy to recreate. Still, it bugs me that something like this should happen.
>
>Anyone with similar cases, or at least to confirm this?
Not sure if this helps, but from the VFP help:
"Visual FoxPro generates an error if the class definition cannot be located or a class definition with the name you specify already exists in ClassLibraryName2"
Also, what happens if you drag the class via the Project Manager to add to the second VCX?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only