Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form that returns a value to a variable
Message
De
22/08/2000 04:04:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00407476
Message ID:
00407638
Vues:
25
>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
Fil
Voir

Click here to load this message in the networking platform