Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Focus on a form
Message
From
08/05/2002 15:10:55
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
 
 
To
08/05/2002 06:28:39
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00653825
Message ID:
00654179
Views:
18
Mike and Marcia:

I wanted to report back on what I came up with to deal with my specific problem.

In my current situation, I am trying to search for a Teacher when the maximum on the list will never me more than 170.

The idea of a pattern box turns out to be too cludgy for what I am trying to do.

So I have given them CTRL + First Char to jump to the first teacher starting with that name i.e. CTRL + G will jump to the first Teacher starting with G, then they use the down arrow key to get to the specific Teacher.

To accomplish this I first have to SET SYSMENU TO so CTRL+A does not try to Select All. Then I put the form into loop whereby the nkeycode for the form would simply set mem1 = "A", "B" etc. according to the key code sent in then release the form. The loop would determine that the operator is not trying to exit, and do the form again. The Init of the form would then SEEK MEM1 and bring the cursor to that row.

The screen does flash but it works with the Grid Highlighting and focusing properly on the row.

I have stored your thoughts for the pattern approch for next time but I did want to report on my practical solution for searching grids with short lists.

Mike Smith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform