Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Values
Message
De
29/01/2002 09:21:05
 
 
À
29/01/2002 09:17:06
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00612122
Message ID:
00612125
Vues:
27
Hello Steven.

How come the following code always gives me the value of the first row in the grid no matter which row I am on?

Select drawlcttable
Seek(PadR(AllT(ThisForm.Grid1.Column1.Text1.Value),24)) Order pcloc


The problem here is that you are misunderstanding how the grid works. A grid is not a spreadsheet. There is only ever one row in the grid. The rest is done with smoke and mirrors.

If you need to access the data, you can just refere to the fields in the grid's recordSource. So if column 1 is bound to Field1 in the grid's RecordSOurce and the current row in the grid is the fourth row, refereing to < grid.RecordSource >.Field1 will give the value you want.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform