Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need help on forms and grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00255772
Message ID:
00255806
Views:
18
>how can i select a certain record from a table displayed in a grid and then have the information from the same record that i just selected to appear on my form when i hit the enter key or when i double-click the mouse? for now, the information from the grid will only appear correctly in my form after i have selected it twice. i'm using the object oriented programming approach. i will be grateful to anyone who can help me solve this problem.

Hmmm...sounds like maybe you need to do a

grid.setfocus

when you enter the form. Also, note that when you're in a grid cell (textbox), the Enter will fire the Click, not the dblclick, so you need do deal with that. Also, you'll need the code in each column lest the user arrow/mouse click around in the grid. You might want to use the Keypress to capture Enter and fire the Dblclick, something like that. A couple ideas, anyway...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform