Problem solve Get help with specific problems with your technologies, process and projects.

Reading a bar code

I've got a 15 character field into which I'm reading a bar code. The data can contain as few as six characters or as many as 15. I want the program to receive an ENTER after the scanner reads the bar code (regardless of the number of characters. (I'm using RPG/LE).

With most RF vendors, you can set a parameter in the RF that will do an auto enter if the barcode field is less than the full length. If your barcode allows spaces (like a three of nine) you could also barcode-trailing spaces and make your field auto enter in your program. I would favor changing it in the RF.




The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


Dig Deeper on Performance

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.