Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value from a non-visual form?
Message
From
13/07/2001 12:44:29
 
 
To
12/07/2001 21:18:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00530047
Message ID:
00530360
Views:
14
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
Map
View

Click here to load this message in the networking platform