General information
Category:
Forms & Form designer
>Hey Joe,
>
>>Then I click a button with
>>the following code...
>
>Thats your problem. From the help:
>
>ActiveRow returns zero if the grid doesn't have the focus.
>
>So when you click your button the grid loses focus. Try the Watch Window or ON KEY LABEL for testing purposes.
Ok... I fixed it by adding a temp variable and copying activerow to it
before the grid loses focus.
BTW- Here is all _my_ vfp5 help file has about it...
Specifies the row that contains the active cell in a Grid control. Not available at design time; read-only at run time.
Syntax
Grid.ActiveRow
Remarks
The ActiveRow property does not return the same value as RECNO( ) in an indexed table.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only