Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form that returns a value to a variable
Message
From
22/08/2000 04:04:44
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00407476
Message ID:
00407638
Views:
24
>Can't it also be done by passing the calling form 'object' as a parameter in CreateObject()?

Do you mean, pass the calling object to the called object, and have the called populate a property in the calling?

You could, but I woudln't want to.

If you aren't calling from an object (like a PRG), you'll need to create one anyways, making how it works inconsitant from call to call. On top of that, you are tightly coupling the functionality to the UI now.

You can't easily tell wether or not the called form was OKed or Canceled without another property in this case, and you can't easily validate and accept the calling forms property in the calling form because it was already populated by the called object.

A 3rd parameter object is best, IMO, if you're gonna do it this way. But I still prefer the "Hide() instead of Release()" method.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform