Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Object Reference to Form vs Passing paremeters
Message
De
11/02/2000 14:03:27
Isabel Cabanne
Hubbard Woods Software, Inc.
Winnetka, Illinois, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00330406
Message ID:
00330908
Vues:
15
Paul,

You should be sure to encapsulate the properties and control values of the referenced form by adding methods returning the needed values to the "client" form, something which is standard OOP protocol. Today's property is often tomorrow's algorithm, and today's o.control can be tomorrow's o.somethingelse.control. You should be able to make changes to the referenced form without having to touch everything that may reference it.

> I have quite a few instances where I call a form from another form and the called form needs access to some of the properties and/or control values of the calling form. I have decided to just pass one parameter to the called form, an object reference to the calling form, rather than sending the multiple values the called form needs.

> Is there a downside to doing this? Is this a good way to do this?

Isabel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform