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.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges