Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't copy class with OLE (MS Calendar) control ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00539882
Message ID:
00540133
Vues:
20
>>I've made a datepickertextbox class whch is a container with a textbox and an (OLE) MS Calendar control in it. Probably a common control that people make for their apps and it all works fine. I made it visually in the class designer.
>>
>>If I try to copy the class from one vcx to another by dragging and dropping in the class designer I get an error : "Object class is invalid for this container. Class containing OLE object is being ignored".
>>
>>What is the soluton to this problem ? If I go into the copied class and add a MS Calendar control and copy the code,properites/methods etc from the original class to the copied class all is fine but obviously not perfect ! :)
>>
>>Jamie O
>
>I always just copy the records out of the VCX into a temp file or an array, and then APPEND them into the new VCX. A VCX is just a table afterall. Works for me.

Thanks guys. Great clean solution. You sometimes forget that 95% of everything in VFP are tables ! :)

Cheers,
Jamie
Cheers,
Jamie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform