Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with INKEY()
Message
From
09/08/1999 09:24:02
 
 
To
09/08/1999 02:11:15
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00251306
Message ID:
00251424
Views:
27
>Hi Bernard..
>
>Here is an example that works...
>
>DO WHILE
> *-- Wait 0.5 second for a keypress
> nWait = INKEY(0.5,"H")
> IF nWait <> 0
> *-- Key pressed, EXIT loop
> EXIT
> ENDIF
>
> Some code....
>
>ENDDO
>

My code is similar. The problem is that FPW2.6a comes up with this error when the INKEY() function itself is evaluated nWait = INKEY(0.5,"H")

"Function argument value, type, or count is invalid" (ERROR#11)

So there is no use evaluating the nWait variable to see if it is <> 0 as the program bombs at the line where there is INKEY(), before returning any result to nWait!!

I want to know if this is a bug or not.

Bernard
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform