Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid - FAQ re: accessing specific row/column, visible or
Message
 
 
À
07/02/2002 10:26:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00616629
Message ID:
00616643
Vues:
22
Hi!

No, because cells in VFP grid have no such purpose.

In VFP grid cells are not objects and are not fixed to the record source. This means that Cell (1,1) in the grid can display the value depended on the horizontal and vertical scrolling. As a result, accesisng data through cells in grid is too complex thing. Instead, it is recommended to use the grid's record source fields. So, for exmaple, if you have a grid, fields in the record source alias will represent cells that display these fields. Only exception is a currect cell - the value in it might be different than value in the alias field because alias field is not updated till the focus is changed. You can access current cell control value by following universal way (if all controls inside grid columns have "value" property):

evaluate("grid.ActiveColumn." + grid.ActiveColumn.CurrentControl + ".Value")

Ask any other questions if you have.

>Is there an FAQ available anywhere that demonstrates how to access specific cells in a grid?
>
>Thanks in advance.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform