What is the right way to determine if user has pressed function keys?
This is what I have tried:
DO WHILE .T.
nChoice := INKEY(0)
DO CASE
CASE nChoice == K_F1
HandleHelp()
CASE nChoice == K_F2
// Handle Cancel
EXIT
CASE nChoice == K_F3
// Handle Save
EXIT
OTHERWISE
// Handle other keys
ENDCASE
ENDDO
I get Error BASE/1003 Variable does not exist: K_F1, which I understand it is because Harbour is not recognising K_F1 as a valid constant. Shall I include something to get those ones recognised?
Thanks