Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Launch a modal form from a class
Message
From
10/04/1999 19:56:50
 
 
To
10/04/1999 08:29:01
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00207168
Message ID:
00207212
Views:
13
>What is the syntax to launch a modal form from a class?
>I have done the following but the form does not appear. What am I missig?
>
>oModalForm = CREATEOBJECT("MyClassForm")
>
>Thanks

One of the nice things about VFP that solved a problem we had in a 2.6 production ap was being able to use the same screen/form as modal or non-modal.

By default form classes create with createobj are created with visible = .f.. To view if you can make visible true...

But, even better you can use the .Show() method of the form.

oMyFrom = createobj('MyFormClass')

oMyForm.Show() && uses the classes WindowType property
oMyForm.Show(1) && the form is shown modal
oMyForm.Show(2) && the form is non-modal.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform