Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass grid parameter to another form's grid ?
Message
De
25/12/2000 15:47:48
 
 
À
25/12/2000 12:37:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00456745
Message ID:
00456756
Vues:
24
There are many different approaches to this problem but I would think that a mediator may be your best bet.
1. The main form instantiates a mediator object which receives an object reference of the main form.
2. The mediator object has a property lxPkey for the primary key references. An assign method is associated with this property to send a message back to the initiator object ( primary form ).
3. the mediator object instantiates the secondary form for navigation and preserves an object reference of the secondary form.
4. The secondary form navigates and sets the mediator object lxPkey value as necessary.

It would not be advisable for different form controls to communicate directly ( close coupling) because if a structural change is necessary the design becomes very rigid.

Have fun, Program in VFP
Glenn

>Hi,
> i have a main form that have a grid and some text box that use to input and display the grid record(records is unique use of same primary key). From the main form i will call another form that will have a grid ,let user to chose the particular row of grid record then by the primary key of the record will search the match data then display on the main form grid.
> I would like to know how to pass the selected grid records parameter from second form to the main form ?
> Or any good ideas ? thanks
>
>kengwen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform