General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only