Tip of the Month (February 2007) Verifying a Value Read by a Barcode Scanner Say you have a table called ITEMS and one of the columns in that table is BARCODE. In your ORDER.VCE form, when you scan an item with a barcode reader, you want to verify that the item is in the ITEMS table and (if it is not) you want to put up a message. Set up your ORDER.VCE form as follows:
If you have a Symbol or Socket scanner: Make sure that the vendor supplied keyboard wedge is off when you start the form. Visual CE will enable the scanner when the edit control you created in (1) has focus. When the user scans into the edit control, Visual CE will automatically press the button you created in (4). If you don't have a Symbol or Socket scanner (or if vendor supplied keyboard wedge is on): Modify the keyboard wedge's properties to append a <TAB> and a <SPACE> after every barcode scan. When the user scans into the edit control, the <TAB> will set focus to the next control (the button) and <SPACE> will press the button. |