Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
>>>>I just need to save a form class as a form. I'm trying to convert something and just can't take the time to deal with the relationship between the class and the form right now. I just want a form, but I need all the stuff that's in the class.
>>>
>>>Well, the relationship is not a particularly complex one. You just invoke with CreateObject() or NewObject() instead of DO FORM. Particularly, you don't need to create a form based on the form class.
>>
>>I wasn't clear enough. This is a form class with lots of custom stuff in it. Not the native form. I just want to turn the VCX into an SCX.
>
>That I understood - I just wanted to point out that there are other alternatives. As I see it, you can do one of the following with a form class:
>
Convert the form class to a form - what you are trying to do, but apparently there is no built-in way to do it.
>Create a derived form and run it.
>Invoke the form class directly, with a CreateObject().
Yes, the first one, but you seem to be right; there is no built-in way to do it.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement