This problem must be easy, but I dont see the solution.
This works in FB II but not FB^3:
CLEAR LOCAL MODE
DIM 2 key$
LOCAL FN Pause (msg$)
PRINT msg$
PRINT "Press any key
"
DO
key$ = INKEY$
IF LEN(key$) then PRINT key$
UNTIL key$
END FN
Neither does this:
CLEAR LOCAL MODE
DIM 2 key$
LOCAL FN Pause (msg$)
PRINT msg$
PRINT "Press any key
"
DO
key$ = INKEY$
IF key$ = "x" then PRINT key$
UNTIL key$ = "x"
END FN
The manual says that INKEY$ doesnt work in FB^3 and that
_evKey should be used, but I dont know how to use it
to tell the runtime to break out of the loop and leave the function.
I could use a small example.
Thanks in advance, Stewart