Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opposite of
Message
De
05/09/2006 21:03:05
 
 
À
04/09/2006 22:17:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
01150809
Message ID:
01151174
Vues:
29
>Opposite of "save as class":
>
>If I have an object on a form, I can convert it to a class with the command "Save as Class".
>
>Is there a way to do this the other way, convert a class to an object on the form? I know I can place an instance of a class, but in this case I want to use the object in one single form, and eliminate the class.
>
>The class is inherited from some custom class. Right now, I am creating an instance of the custom class on the form, and manually copying the PEMs. I was thinking there should be a faster way, but there doesn't seem to be.

Not exactly an opposite to "save as class" but the GKK Form Editor (in downloads) that I wrote has the ability to open another form or visual class and allow you to copy the methods from that form/class to the current form being edited. It will add the copied methods to the form as custom methods or you can copy to existing stock methods (like click, init, etc.) of form objects. In your case add the object that you want to copy from the class to the form as a base object and then copy the methods. You can also add custom properties at the form level. Note, that the tool only works with VFP9.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform