>>>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
>
>
>Do u mean hide the form( it is a class) rather than releasing it? get the property and then release it ?
>
>No other way ?
>
>with
> do form i can use do form myform to m.value1
>
>but with the class I am in a fix.
>
>Now that i will have to convert all the class into forms
You can use the suggestion with a class:
o = CREATEOBJECT("MyForm")
o.WINDOWTYPE=1
o.SHOW
xx = o.return_value
o.RELEASE