Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving to a new row in a grid
Message
From
15/05/2001 09:53:48
 
 
To
15/05/2001 09:46:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00507094
Message ID:
00507253
Views:
16
Hi!

Ouch! You're correct, I mixed it.
Anyway, ActiveRow is not reliable even when grid have a focus. Go look to coments in the MaxFrame grid sources - they read this property twice because it is zero first time after focus setting (maybe it is only in the early versions of VFP6?).

>Vlad,
>Agree it's not reliable or say slow and needs grid has focus. OTOH I think you mixed it with relativerow :) It's the row number of all visible+invisible rows. And yes it would change in cases like reordering.
>Cetin
>
>>Hi!
>>
>>Active row is not reliable. It is the row number in visible prtion of records. So, when grid is scrolled, records are shifted and the same active row points to another record. Scrolling by 1 row in grid thus causes a problem.
>>
>>>Hi Nadya,
>>>
>>>Thanks for your response. Is there any downside to testing the active row instead of the recno().
>>>
>>>The way I've currently got it the app working is to put the current active row into a variable in the valid. Then in the gotfocus, I test whether the new active row is equal to the variable.
>>>
>>>Mitch
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform