Not entirely true but I've come across another bizarre thing in FPW2.6a:
*{---------------------------
SELECT bigtable
m.lkill=.F.
ON KEY LABEL esc DO cancscan WITH m.lkill
SCAN
IF m.lkill
EXIT
ENDIF
*stuff
ENDSCAN
*****
FUNCTION cancscan
*****
PARAMETERS m.pflag
PUSH KEY CLEAR
m.pflag=.T.
POP KEY
*{---------------------------
So, the scan takes a long time and the user is supposed to be able to cancel
halfway through. For some reason when in the loop, the escape keypress is
ignored. It is nothing to do with SET ESCAPE [already tried, SET ESCAPE does
not affect ON KEY LABEL esc]
If I bind a different key it works OK.
What's *really* strange is that with escape bound, it works if I press any
other key on the keyboard first. As soon as I suspend the program it seems
to work properly too so debugging isn't easy.
This only seems to be the case during a SCAN, I set a different procedure
for escape after the scanning and that always works.
Any ideas?
--
TIA
Andrew Howell