I've tested the Dragan Nedeljkovich's code in Run-time mode (stand-alone exe) for VFP 7.0
Works with all the keys from F2 to F9
key code
F2 -1
F3 -2
...
F9 -8
F1 - reserved for the help system
F10 - reserved for activating the menu
Zlatin Zlatev,
MCSD (VS6)Make solutions, not programs!