Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MESSAGEBOX(STR(THISFORM.gridname.ActiveRow)) returns 0
Message
De
21/01/1999 21:11:03
 
 
À
21/01/1999 19:09:54
Martin Holzhofer
Edv-Service Holzhofer
Oehringen, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00178794
Message ID:
00178808
Vues:
34
>I want to get values from the active row of a grid. First I wanted to
>get the active row with Grid.ActiveRow, but alike in which row I click
>before the command MESSAGEBOX (STR(THISFORM.gridname.ActiveRow)) returns always 0. Is this a bug or a feature?

As Edward pointed out, grids only have an activerow when they have focus. Instead of trying to get values from grid column, you should just getthe value from the cursor that the grid is based on. The active row is the current record. So instead of grid.column1.txt1.value, just use MyTable.MyField.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform