Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How declare GotFocus() in grid
Message
From
15/07/1999 07:11:57
 
 
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:
00241702
Views:
14
>>Rolandas,
>>
>>GotFocus is an event that fire shwen the grid gets focus, it is SetFocus that you want.
>>
>>thisform.grid1.column1.text.SetFocus()
>
>I need declare function GotFocus(). My goal is refresh form every time, when move to next row.

Look at the Grid's AfterRowColChange Event, which fires each time the focus in the grid has changed to a new row (record) or column (field in record) after the new cell gets focus as long as the When event returns .T., allowing the cell to be entered. Sounds like what you're looking for.

>But I don't know how declare GotFocus() code. With form designer I know how did this, but I need decalre this functions in code only.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform