Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MESSAGEBOX(STR(THISFORM.gridname.ActiveRow)) returns 0
Message
From
21/01/1999 21:11:03
 
 
To
21/01/1999 19:09:54
Martin Holzhofer
Edv-Service Holzhofer
Oehringen, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00178794
Message ID:
00178808
Views:
33
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform