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>