Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INKEY() Speed
Message
From
02/01/2011 15:30:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
INKEY() Speed
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01494340
Message ID:
01494340
Views:
169
Hi All,

Whys is INKEY("H") orders of magnitude slower than just plain INKEY() ?
CLEAR

* Sub-second ...

TSECONDS = SECONDS()
FOR I = 1 TO 100
  TA=INKEY()
NEXT
? SECONDS() - TSECONDS

* Over 6 seconds ! ...

TSECONDS = SECONDS()
FOR I = 1 TO 100
  TA=INKEY("H")
NEXT
? SECONDS() - TSECONDS
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Next
Reply
Map
View

Click here to load this message in the networking platform