Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSComm taking a long time
Message
De
28/09/2006 11:59:26
 
 
À
28/09/2006 09:04:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP2
Divers
Thread ID:
01157804
Message ID:
01157876
Vues:
26
>Viv,
>
>>It's not assigning a variable - it's sending the string to the transmit buffer. I guess if you want it to go faster you need a faster baud rate...
>
>Correct, but only to a point. Try the following:
>
>sendstart = SECONDS()
>this.mscomm1.output = SPACE(100)
>buffcount  = this.mscomm1.outBufferCount
>sendend = SECONDS()
>outputtime = sendend-sendstart
>
>
>buffcount wil always be 0. Control doesn't return to VFP until the entire output buffer is empty.

I think we're saying the same thing - the act of assigning it sends it and the code doesn't continue till that's completed. It would've been more intuitive if they'd made this a method:
this.mscomm1.Output(SPACE(100))
Come to think of it I don't recall MSCOMM having *any* methods?
Best,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform