Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How declare GotFocus() in grid
Message
From
15/07/1999 04:54:27
 
 
To
15/07/1999 04:44:50
Rolandas Jakeliunas
Kaunas University of Technology
Kaunas, Lithuania
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00241177
Message ID:
00241678
Views:
12
Hi Rolandas.

>> I need declare function GotFocus(). My goal is refresh form every time, when move to next row. <<

Then how about putting this code in the AfterRowColChange method of the grid:

Thisform.refresh()

Of course, this code will execute even when you tab from column to column within a single grid row. So what you may want to do is add a custom property to your grid called nRecNo and set it to RECNO(This.RecordSource) in the BeforeRowCoChange. Then, before refreshing in afterRowColChange, you can check for This.nRecNo = RECNO(This.RecordSource) and only refresh the form when they are different.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform