Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with INKEY()
Message
De
12/08/1999 03:48:54
 
 
À
09/08/1999 09:24:02
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00251306
Message ID:
00252861
Vues:
25
Hi Bernard..

Try to use INKEY() without the "H" parameter

>>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
Benn Kjaer
MS Certified Professional - Visual Foxpro

"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform