Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OCX objects in a VCX. Is this not a bug? (VFP 6,7,8,9)
Message
 
To
27/10/2005 10:38:09
Larry Long
ProgRes (Programming Resources)
Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01062627
Message ID:
01062650
Views:
12
>I am using a visual class with an imbedded third party OCX control. When I recompile the class, shouldn't the imbedded OCX also recompile?

Nope. That's pretty much what you have to do. An easier way it to not actually drop the activeX, but drop a container which does an .ADDOBJECT([activex]). Keep as many methods and properties in the container as possible. That will make it easier to upgrade to new versions.

>
>The only way that I have been able to update the control in the class is to...
>
>1) Register the new OCX
>2) Open the VCX as a table
>3) Locate the OCX control's record
>4) Copy out my custom methods for the object to a temp file
>5) Delete the record and pack the VCX
>6) Open the class
>7) Re-add the control and rename it to what it was before
>8) Close and open it again as a table
>9) Locate the new OCX record and paste in my saved methods.
>
>Too much work!
>
>Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform