>>ITEM: N00039
>>DATE: 03/26/96
>>TYPE: Bug
>>TITLE: NEXTKEY() inside N_ONANYKEY() event fails in Clipper 5.3
>>PRODUCT(S):
NetLib 6.5, 6.5a, 6.5b for Clipper
>>PLATFORM(S):
Clipper 5.3x
>>SUMMARY:
Clipper NEXTKEY() function returns zero inside of calling N_ONANYKEY()
event procedure.
>>MORE INFORMATION:
This is limited to Clipper 5.3, only.
Remember that the event procedure "sees" the keystroke before the
main program.
>>RESOLUTION/FIX:
Use N_ONANYKEY() instead. N_ONANYKEY() with no parameters, when
used inside an event procedure, will return the numeric value of
the next keystroke in the keyboard buffer.
>>EXAMPLE(S):
* Monitor for Esc key (27)
N_ONANYKEY("trapkeys")
...
PROCEDURE trapkeys
IF N_NEXTKEY() == 27
* Escape detected
ENDIF
RETURN
>>COPYRIGHT 1997 Communication Horizons
All rights reserved worldwide.
No distribution without specific consent of publisher.
Knowledgebase
Top Home