Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSCOMM input is different from Hyperterminal
Message
De
22/10/2008 02:43:57
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01356127
Message ID:
01356208
Vues:
20
Hi,

If RThreshold is 1 then the OnComm should fire repeatedly and you should be able to build up the complete message eg
IF THIS.CommEvent = 2
IF THIS.InBufferCount>0
lcString =  lcString+THIS.Input
If SomeCheckToSeeIflcStringIsComplete()
  * Process the message
.......
But if, as you say, OnComm is NOT firing repeatedly then it's hard to know what the problem might be. This link has a VFP example which might help:http://support.microsoft.com/kb/q154741/

Best,
Viv

>oops, not a good thing then? Unless there is another way to get the data?
>
>>Setting RThreshold to 0 will disable the OnComm event.
>>
>>>RThreshold is set to 1.
>>>I will set it to 0 and try again.
>>>Thanks
>>>
>>>>What is the RThreshold value?
>>>>
>>>>For example, in my INIT of the control I use:
>>>>
>>>>* looks at each individual character from the buffer if set to more than zero
>>>>.RThreshold = 0
>>>>.Settings = "9600,N,8,1"
>>>>
>>>>This determines how many characters received to the onComm event. There is no reason it won't grab the same info if the settings are correct.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform