Home

Communication Horizons
established 1986

Home
Contact

 

Knowledgebase Index
About Us
Contact
Legacy Products


Communication Horizons
65 High Ridge Rd. #428
Stamford CT 06905

support

800-480-1604
203-321-1278
fax  286-1056

       

Knowledgebase


>>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

 

 

© Copyright 2001 Communication Horizons LLC.
“NetLib” and “Encryptionizer” are Registered Trademarks of Communication Horizons.
US and international patents pending.
Updated 29 Sep 2002