Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning value from FORM subclass
Message
From
01/09/2006 03:44:43
 
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:
01150305
Views:
24
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"
Previous
Reply
Map
View

Click here to load this message in the networking platform