Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird problem with MSCOMM
Message
De
23/03/2004 08:33:07
 
 
À
23/03/2004 08:24:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00888798
Message ID:
00888821
Vues:
21
Hi Jim,

Thank for your advise and code.
Beside using this way, any other better way to
wait for my device to reply before checking my
result ?

I hope that after sending my command to MyFare reader,
I just wait for its reply and show it.
Maybe my code is not well written. I sure there must
be some better way to solve this issue.

Thank you


>If you must wait and still need the events, then try this:
>
>FOR x = 1 TO 5
>  INKEY(.1)
>  DOEVENTS
>ENDFOR
>
>Personally, I hate using this approach.
>
>>Hi Jim,
>>
>>Thank for your advise.
>>So, how do I implement the waitSec function ?
>>
>>Any problem with my code or any improvement
>>that you can advise me on this issue.
>>
>>Thank you
>>
>>>Virusim,
>>>
>>>SLEEP() is doing exactly what it is supposed to do :
>>>
>>>"suspends the execution of the current thread for at least the specified interval"
>>>
>>>Since your OnComm() codes runs in the current thread, it doesn't :-) However, if you test the comm input after the Sleep expires, I expect you'll find your data is there.
Best Regards
Virusim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform