The following code snippet works correctly in a Windows XP environment, however in Windows 7 it does not.

---------------------------------------------
CLS
SET KEYMAP [F2] = [ENTER]
SET V sval TEXT = NULL
DIALOG 'Enter Search Text:' sval EK 1 CAPTION ' Search Criteria        [F2] to Add' AT 12,25
IF (LASTKEY(1)) = '[F2]' THEN
  PAUSE 2 USING 'F2 PRESSED' AT CENTER CENTER
ENDIF
----------------------------------------------

In Win_XP, if the function key [F2] is pressed, the routine will detect it.
In Win_7, pressing the function does not terminate the DIALOG command until [OK] or [Cancel] are clicked.
The correct value IS stored in (LASTKEY(1)).

Any ideas why this would stop working as it has in XP?

Thanks,
Rob Vincent

Reply via email to