Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 grids, 1 form
Message
De
30/08/1999 22:02:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00259302
Message ID:
00259498
Vues:
28
>I have 2 grids on a form. The first grid contains a clients name and where the clients tables are stored on the network. Like:
>
>column 1 column2
>Clientabc d:\clientabddir\
>
>I want the information in column 2 of grid1 to change the record source of grid 2. I put this in the when event of grid1:
>
>thisform.grid2.recordsource = Alltrim(thisform.grid1.column2.text1.value) + "charges.dbf"
>
>thisform.grid2.refresh()
>
>I get nothing.
>
>I must be missing a property or something. This seemed like it was going to be easy at the onset.
>
>Jill

Grid expects to have alias as recordsource, i.e. you should open the table and use its alias afterwards, e.g.
USE c:\...\charges in 0 alias mycharges
thisform.grid2.recordsource="mycharges"
thisform.grid2.recordsource

Also, the appropriate place would be grid1.afterrowcolchange event.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform