>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