Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if grid has the focus?
Message
From
29/08/2004 04:58:01
 
 
To
29/08/2004 04:03:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00937360
Message ID:
00937364
Views:
7

GridHasFocus = (GridObj.ActiveRow > 0)


Sorry Gregory, ill-fatedly two problems exist:
- this is a sufficient condition, but it is not necessary.
- when this is sufficient,
this can to be very slow because every time that comes read the ActiveRow property,
VFP executes a count loop, like this:
* select GridObj.RecordSource
STORE RECNO() TO gridRecno
COUNT ALL WHILE RECNO()#m.CurrentRecno
RETURN _TALLY+1
Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform