Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 grids
Message
De
27/05/2005 09:10:34
 
 
À
27/05/2005 08:18:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01018071
Message ID:
01018092
Vues:
12
I suppose the two grid's recorsource have the same structure. If so you could place a commandbutton on the first grid and manage its click event like this

lcFirstGridAlias = thisform.grid1.recordsource
select (lcFirstGridAlias)
scatter memvar

*now swap the values formn i04 and i05
m.io5 = m.io4
m.io4 = &lcFirstGridAlias.io5

insert into (thisform.grid2.recordsource) from memvar

thisform.grid2.refresh()

>hi all,
>
>i have 2 grids at myform,
>
>i can choise items form grid2 to insert it into grid1 as under
>

>grid2
>------
>io1
>io2
>io3
>io4
>io5
>io6
>
>ex..
>i insert into grid1 from grid2
>grid1
>----
>io1
>io3
>io5 && i need to replce io5 with io4 from grid2 ,same position
>io6
>io2
>
>

>
>thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform