Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KEYBOARD command idiosyncrasy

Status
Not open for further replies.

Jerry4DOS

Programmer
Jan 17, 2002
26
0
0
US
Here I am, 11 years into my life's "FoxPro Experience," and I turned up another "undocumented feature" of FPD2.6a I hadn't encountered before. I checked our forum SEARCH, and couldn't find it discussed earlier.

You can't stuff the KEYBOARD with more than TWO "uparrow" or "dnarrow" commands (like you can with the other keys).

Try this, using any table with several fields and records. Run this code to load your function keys:

Code:
ON KEY LABEL F1 KEYBOARD REPLICATE("{uparrow}",5)
ON KEY LABEL F2 KEYBOARD REPLICATE("{dnarrow}",5)
ON KEY LABEL F3 KEYBOARD REPLICATE("{tab}",5)
ON KEY LABEL F4 KEYBOARD REPLICATE("{backtab}",5)

Jerry

 
Apparently this is true when browsing a table, but for other instances like in an edit window, it behaves properly.
But as is quite often the case with Fox, there is a way to get around it. Try this:
Record a macro using Shift+F10. When the dialog comes up, press say, Shift+F12. The macro will be named shift_f12.
Then in the command window, run this line of code:
ON KEY LABEL F12 PLAY MACRO shift_f12

Browse a table, and press F12.


-Dave S.-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top