Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement