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