Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a form in a class
Message
From
06/08/1998 11:55:26
 
 
To
06/08/1998 11:50:10
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00124488
Message ID:
00124502
Views:
23
>>>I created a model form that returns a value.
>>>
>>>When I do this;
>>>DO FORM myform TO x
>>>
>>>x contains the returned value.
>>>
>>>However, I then saved the form in a class library. How can I call the form class and have it return a value?
>>>
>>>When I do this;
>>>SET CLASSLIB TO myform.vcx ADDITIVE
>>>ox = CREATEOBJ("mymodelform")
>>>y = ox.SHOW()
>>>
>>>A logical true is always returned. How can I the correct value returned?
>>>
>>>Thanks,
>>>
>>>Jerryt
>>
>>Only modal form can return a value. Other forms should work with properties.
>
>
>This form is modal and the return value is in propety and that property is returned in the Unload() method.
>
>If I do this;
>SET CLASSLIB TO myform.vcx ADDITIVE
>ox = CREATEOBJ("mymodelform")
>y = ox.SHOW()
>
>Should 'y' contain the return value?
>
Why? Is it documented anywhere? If you want to 'return' something from a form then just reset some property of another form (where you want to use 'returning' value) from e.g. Form.Destroy/Unload event.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform