[Lazarus] how to pass barcode value to a TEdit component

Giuliano Colla giuliano.colla at fastwebnet.it
Sun Jun 23 18:47:31 CEST 2013


On 06/23/2013 06:06 PM, Johan Tu Toit wrote:
> so once the focus in the myedit.text has been made, and the barcode
> scanner button has been triggered, the myedit.text received the value
> read from the barcode been scanned?

Yes, it's as simple as that, provided you have set up your scanner to 
behave as a keyboard (which is the standard behavior for most scanners).
You may verify it with any text editor: open a text editor, then trigger 
your barcode scanner, and you should see the value read into your editor 
window. If it works, then it will work also with your myedit.text.

Giuliano






More information about the Lazarus mailing list