General information
Category:
ActiveX controls in VFP
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only