General information
Category:
Forms & Form designer
Hi Ramil,
>>do form frmModal to x
This is creating a form programmatically. Why do you want to use the CREATEOBJECT() syntax instead?
If you want to get a value from a modal form without using the DO FORM syntax, you need to have the modal form hide instead of close. That way it will still be in scope when the calling program continues and you can get whatever values you want from the forms properties.
So something like:
oForm=createobject('frmModal')
oForm.show()
x = oForm.MyProperty
define class frmModal as form
windowtype = 1
procedure QueryUnload()
This.Hide
NoDefault
endproc
enddefine
HTH
Pamela
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