Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I change class of an object?
Message
De
22/01/2008 19:45:20
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
22/01/2008 19:08:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01284315
Message ID:
01284324
Vues:
20
>I hacked the table manually but I'm still hoping somebody will suggest a tool that will let me automate that task.

A .prg which would open the .vcx, locate the record, and do the Replaces? ;)

Actually, the tool came with VFP, it's your class browser. Righctlick your class and select Redefine - and there you can select a new parent class for your class.

The limitation is that if you redefine a combo to become a timer, you're on your own, nobody will hear you scream. Also, you cannot redefine contained objects, for those you need to write a builder (not too hard) which would create a new object based on the old, copy the properties and code and then kill the old object. There are a few little tricks to that (don't touch the .name until you kill the old one!), but nothing earth-shattering.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform