General information
Category:
ActiveX controls in VFP
I have a terminator which is a chr(13).
So, what getData returns is "1234chr(13)5678chr(13)".
Why is that happening? Is there a way to clear buffer or whatever completely to avoid that?
>Any chance of configuring the scanner to send a preamble and terminator on the scan string? Be easy to parse out multiple scans in that case.
>
>>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
Previous
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