Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return a value from a form object
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00643888
Message ID:
00643895
Views:
7
You could pass a reference to the calling object so that the form called changes a property on the calling object. Or use a public container that stores the value for all to see.

Just a thought.

John Rowlinson
Microworks POS Solutions



>>Hi everybody,

>>I know how to return a value from a form this way :

>>DO FORM name TO returnvar


>>But my case is a little different. A create a formset object in which I add a form. My form is an object stored in a vcx class. Here's how I do that :

>>oFormSet = CreateObject("FormSet")
>>oFormSet.WindowType = 2
>>oFormSet.AddObject("MyMainForm","MyFormClass")
>>oFormSet.MyMainForm.Visible = .T.
>>oFormSet.Show()
>>oFormSet.Release


>>What would be the better way to return a value from the object "MyMainForm" ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform