Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Design using BINDEVENT()
Message
De
19/07/2004 03:25:14
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Class Design using BINDEVENT()
Divers
Thread ID:
00925669
Message ID:
00925669
Vues:
59
Hi,
I have few controls in my form. I want one of my textbox (TextBoxA) to have value with TextBoxB on interactivechange.
In order to have loose coupling, I plan to use BINDEVENT().
The problem is, I got to know the eventSource to bindevent. If I hardcode the object hierarchy like
BINEVENT(THISFORM.pgf.Page1.TextBoxB, "interactivechange", ;
              THISFORM.pgf.Page2.TextBoxA, "OnAInteractiveChange")
then it is meaningless of using BINDEVENT().

My current design is, use Form as "OBSERVER". I form as subscriber of TextBoxB. IOH, TextBoxA is subscriber of Form. Any comments on this design? Any other suggestions?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Répondre
Fil
Voir

Click here to load this message in the networking platform