Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveRow property in a Grid
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00121025
Message ID:
00121072
Views:
17
>I am struggling with a grid and trying to understand the ActiveRow and RelativeRow properties. I think I know what their value should be, but I want to verify with a WATCH variable in debugger. If I put:
>
> ThisForm.pgfTest.Page1.grdTest.ActiveRow
>
>in as a WATCH varaible, it always displays zero? If I add a WATCH variable for a textbox from the same form and tab using:
>
> ThisForm.pgsTest.Page1.txtText.Text
>
>I can see it's value. So I don't think I am referencing the property wrong.
>
>So if I mouse down in the grid, shouldn't the ActiveRow property be updated in the WATCH variable?

The problem is that ActiveRow and ActiveColumn are available only when the Grid is focused. Once, I needed to do something with these properties and in the WHEN methods of the fields of the grid I had to write something like

ThisForm.RowNow = ThisForm.MyGrid.ActiveRow
ThisForm.ColumnNow = ThisForm.MyGrid.ActiveColumn

so I could work with ThisForm.RowNow and ThisForm.ColumnNow later.

HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform