Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save a class as a form
Message
From
01/12/2008 06:13:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
30/11/2008 23:01:39
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01364752
Message ID:
01364794
Views:
13
>>>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().
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform