By using a barcode reader with a "keyboard wedge", you can scan barcodes. VFP (or any other program) sees the barcode as coming from the keyboard. Some barcode readers also have a serial connection that you can use.<br>
<br>
You have to set up an event handler to keep the EXE running. I usually set up a prg called start.prg and it will contain variable definitions, opening the database, reading configuration files, etc. But the main thing it does is to have the following code:<br>
<br>
Public OkToRun<br>
OkToRun = .T.<br>
Do While OkToRun<br>
Read Events<br>
EndDo<br>
<br>
Then in the menu choice, button (or whatever the user clicks on to exit) I put the following code:<br>
<br>
OkToRun = .F.<br>
Clear Events<br>
Check out a company called TAL. They make a product called BC-Wedge. It's software for Windows that allows communication from the reader through a serial port directly into the keyboard buffer. I believe it is less clunky than the "keyboard wedge" approach (although that works okay). <br>
<br>
TAL has the "keyboard wedge" solution too. I just found the BC-Wedge cheap, easy to implement, and reliable.<br>
<br>
Good Luck!<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.