- Code: Select all Expand view
- @ 55,005 SAY oSays[5] VAR "&Name" OF oDlg PIXEL
@ 55,45 GET oGets[5] VAR acNames[1] OF oDlg SIZE 40,10 PIXEL PICTURE "@!" ;
WHEN EVAL({|| SETKEY(VK_F2, {|| cVar := acNames[1], ;
NameLookUp(@cVar, .F., .F.), ;
acNames[1] := cVar, oGets[5]:varget(), oGets[5]:refresh()}), .T.}) ;
VALID (EMPTY(acNames[1]) .OR. ChkPlan (acNames[1])) .AND. ;
RelHotKey (VK_F2)
@ 55,105 GET oGets[6] VAR acNames[2] OF oDlg SIZE 40,10 PIXEL PICTURE "@!"
.
.
.
STATIC FUNCTION RelHotKey (nKey)
SET KEY nKey TO
RETURN .T.
* EOF: RelHotKey
The lookup window (activated via the F2 key or an invalid name) is still active on the second get even tough I expressly reset it on the ResetHotKey function.