General information
Category:
ActiveX controls in VFP
Title:
Comm port controlled by MSCOMM
I have the following code in the ONCOMM event of the control:
WITH This
.pcLastReading = .pcLastReading + .Input
*!* Upate reading with the raw scan
TEXT TO lcSql TEXTMERGE NOSHOW
usp_UpdateReading '<<.pcLastReading>>', <.Parent.pnCommPort>>
ENDTEXT
ThisForm.mExecuteSqlCommand(lcSql, '', '')
ENDWITH
I am getting about 22 rows inserted into an SQL table after a single scanner's scan that is attached to the comm port. Why that's happening? My barcode is short - 5 chars.
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