Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return from createobject
Message
From
28/10/2006 06:36:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/10/2006 23:34:32
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01165239
Message ID:
01165260
Views:
9
>hi,
>
>Can i get a return value from a form class which is modal with createobject like
>
>
>M.o1 = createobject('Myform')
>
>m.o1.windowtype = 1 && modal
>
>when the user presses ok there is a property set in the m.o1.return_value
>
>How can i retrive the return value ?
>Because after i get the control back to the calling application m.o1 = null
>
>
>TIA
>
>suhashegde

Suhas,
I agree with Viv. It's the simpliest way but windowtype should already be set (otherwise you could do a o1.Show(1)). It looks like:
local o1
do form myModalForm name o1
* following code is not reached as long as the modal is visible
* you do not any return value setting since via o1 you can reach
* any PEM of that form
local luSomething
luSomething = o1.SomeProperty
o1.release()
release o1
Just instead of calling thisform.release, thisform.hide() in modal form.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform