Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable scope
Message
From
18/08/1999 11:09:26
 
 
To
18/08/1999 10:26:29
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00254565
Message ID:
00254999
Views:
24
>Hi Erik,
>
>>Out of curiosity, why would you want a return value from new object besides the object reference? Let's have some background here :-)
>
>You've never found the need for this? Just to pass the value of a textbox back from a modal form class or anything? The way I do it is pass an object reference to the form so I can fill a property of the calling form later. But what if you don't call from an object? Like I said maybe I should pass the Var by reference but off hand I still don't think that would work. A global variable might, but we know how that goes.

I instanciate form classes at run time. All of my forms are called with DO FORM. So modal forms return a value. This is exactly one of my reasons. (The others are DE, the ability to run from the project manager, simple DO FORM syntax, etc.)

But if I had to do things the way you are trying to, I would use:

oForm = CREATEOBJECT("SomeForm")
oForm.Show()
lcVal = oForm.Text1.Value
oForm.Release()


Of course the Ok button on the modal form class just hides the form.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform