>I would like to execute a program (*.prg) when the user exits a textbox via the return key but not trigger the program if he tabs or clicks out of the textbox. Any ideas on how to do this?
What about to put this in LostFocus Event of the TextBox:
IF LASTKEY() == 13
DO WhatEver
ENDIF
DODEFAULT()
or in KeyPress Event of the TextBox:
IF nKeyCode == 13
DO WhatEver
NODEFAULT
KEYBOARD '{TAB}'
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.