Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comm port controlled by MSCOMM
Message
De
11/07/2006 13:57:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Comm port controlled by MSCOMM
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01135440
Message ID:
01135440
Vues:
85
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform