Thanks,
I didnt think of this possibility at all. Sometimes it is great to have somebody ("manybody") to think for you :)))
>Vladimir,
>
>In the button you are using to release the form, change it to hide the form instead (you will need code to differentiate the use, or a different class), so, in your button in the class, instead of releasing, you will have
>
>
>thisform.hide()
>
>and your code will be
>
>
>THIS.ADDOBJECT("oLoginWindow","loginform")
>THIS.ologinwindow.SHOW
>lVar = this.oLoginWindow.YourPropertyUsedAsReturnValue
>this.oLoginWindow.Release()
>
>
>
>>Hi,
>>I have a custom based class that in one metod have this:
>>
>>THIS.ADDOBJECT("oLoginWindow","loginform")
>>THIS.ologinwindow.SHOW
>>
>>Everything works great. loginform is form based subclass that returns value in unload event.
>>
>>if login form is run as standard form Do FORM loginform to lVar, normaly lVar contains returned for value.
>>But how to achieve the same thing when instanciated as above.
Vladimir Martinovski
VCS Software Inc.
"May the FOX be with You"