Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSComm
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Re: MSComm
Miscellaneous
Thread ID:
00340640
Message ID:
00343156
Views:
22
>Halo people
>I'm reading barcodes from the serial port, if I read a barcode
>witch has more than 8 digits it some times reades me only the last
>tree or four digits depending of the cantity of digits.
>How do I read barcodes with more than 8 digits correctly?
>Thanks very much for you help
>Kilian

Try this code:

with scannerObject
.commport = lPortnum && 1 or 2
.settings = "9600,e,8,1"
.portopen = .t.
.inputlen = 250
ENDWITH

&& when reading from scanner ( I'm using the timer object for this)
with scannerObject
IF .INBUFFERCOUNT > 0
lbarcode = ALLTRIM(.INPUT)
ENDIF
endwith

Hope this will help

Zoran Milivojevic
zoran@dunavel.com
Previous
Reply
Map
View

Click here to load this message in the networking platform