Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winsock
Message
De
01/02/2008 15:09:16
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Winsock
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01288289
Message ID:
01288289
Vues:
79
I am using a winsock OCX to receive data from a TCP/IP device with a scanner attached.
Here is my code to get data:

*** ActiveX Control Event ***
LPARAMETERS bytestotal
LOCAL strData
strData = SPACE(255)
This.Object.GetData(@strData)

I am checking bytestotal for every scan. While barcode has 5 chars I am recieving 12 sometimes and strData might look like this:
"abcde 12345"

where abcde 12345 are two consecutive scans. Do I need to do some kind of buffer clearing or something?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform