Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value from a form?
Message
From
01/12/2003 15:34:52
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
01/12/2003 12:30:25
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00854035
Message ID:
00854817
Views:
26
Yes. That's very precise!

>>Hi Mike
>>
>>Another possible solution is to use a parameter object.
>>
>>You create a custom object. Add all the properties you want to it. You pass it to the form. The form uses the properties of the object like it would use parameters. The form can also update the properties and pass the object back.
>
>More precisely, doesn't need to pass anything back. Since the objects are always passed by reference, the passed object will be actually a reference to the original object, so anything the form does to this reference happens to the original.
>
>I find this approach tremendously easy, because in case you need any additional parameters, simply add more properties to the object. I think this sort of usage was one of the main reasons Empty class was invented for VFP8.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform