This is an interesting thing for those working with barcode scanners on HMG.
An app, I'm developed for one of my customers, read product codes (EAN-13) from a barcode scanner.
To make the process fully automatic, I'm using OnChange event (in a textbox that always has the focus).
Inside OnChange event, I ask for the length of the textbox content, If 13, I search for it in a table.
Very simple.
Some days ago, this customer informed me, that some new codes are not working. These new codes are EAN-8.
Then, I've modified my OnChange event to support both codes.
But, while testing, I've noticed that the behavior of my code is different according how the data is entered (code digits manually by keyboard or using the barcode scanner).
Apparently, when the data comes from the scanner, it generates ONLY ONE OnChange event.
Someone has experience with this?
This happen always with all barcode scanners?
Does someone knows how the scanner works / Why is generating only one OnChange event?
TIA.
PS: If someone is surprised because this question comes from me... well... HMG only makes use of WIN32API EN_CHANGE event message, so, all this thing, happens between the barcode scanner and Windows... so... is "their" thing
