Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you get a return value from a FORM?
Message
From
11/08/1998 10:27:31
 
 
To
10/08/1998 13:15:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00125319
Message ID:
00125578
Views:
13
>>I would like to check for a return value from a FORM.
>>How would I do this?
>>thanks
>
>Robert,
>For a form to return a value it must be modal.
>*Modal form init
>lparameters paramshere
>
>*Modal form unload
>...
>return ReturnValue
>
>You call it :
>do form mymodal with parms... to myreturnvalue
>
>While this is the basic structure for a form returning a value, instead of this approach you might use these better ones :
>1) Create a var(s) before calling another
>This way you could change those var(s) from the called form.
>
>2)Pass caller ref to called form
>do form myform2retvalue with thisform
>
>* myform2retvalue.init
>lparameters oCaller
>thisform.CustomSourceHolder = oCaller
>
>* Any PEM
>thisform.CustomSourceHolder.AnyPem() && A method call or prop assign-access
>
>This way instead of returning a value you could directly use caller's PEM.
>
>3)Do form myform name "myParent" linked && Myparent object ref is available
>
>do form myform2retvalue && Same as 2 except you don't pass the ref
>* Any PEM
>myParent.AnyPem() && A method call or prop assign-access
>*myParent references caller
>
>Cetin
hi cetin:
thanks for the information. I will try it :)
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform