>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.
Previous
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