Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and loss of focus
Message
From
04/07/2003 12:27:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Grid and loss of focus
Miscellaneous
Thread ID:
00807027
Message ID:
00807027
Views:
53
I need to control the focus of a grid field.

I use Windows XP and Visual FoxPro 7.0 SP1

Here is what happens. I have a grid built on a temp table. The user can build an invoice by clicking button options that sequencially fill the fields and then step down the invoice as the order is filled. However, when the user decides to change an entry and goes back and clicks on the field to change and then clicks a button to re fill that field, the field fills and the focus jumps to the bottom of the grid. I want the focus to remain where the refilled field is located.

Here is the Click code I am trying in the Textbox of the grid.

Local RecordPointer
RecordPointer = Recno()
Goto RecordPointer
This.SetFocus
This.Refresh

Can you help me solve this?

Grady McCue
foxunc@telus.net
I ain't skeert of nuttin eh?
Yikes! What was that?
Next
Reply
Map
View

Click here to load this message in the networking platform