Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning value from FORM subclass
Message
 
To
31/08/2006 17:15:36
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01150230
Message ID:
01150237
Views:
46
This message has been marked as the solution to the initial question of the thread.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform