Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winsock
Message
From
01/02/2008 15:09:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Winsock
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01288289
Message ID:
01288289
Views:
78
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
Next
Reply
Map
View

Click here to load this message in the networking platform