一个条形码中有两个条形码数量
我正在努力从扫描仪读取包含两个条形码的条形码,该扫描仪提供 UPC 条形码和单个条形码中的购买数量。条形码扫描仪是一个模拟键盘的 USB(典型的开箱即用配置)。我无法使用前置和/或后置字符来区分条形码。扫描仪在两个代码后面各提供一个返回键。当我扫描到记事本时,我得到 UPC 代码、一个返回字符、数量和另一个返回字符。
我正在使用 Visual Studio 2010 Pro 用 C# 进行编码。我尝试过使用接受返回的文本框并将其设置为多行,但我只得到 UPC 代码。到目前为止,我还没有找到方法来捕获数量。帮助!!!
I am working on reading a barcode containing two barcodes from a scanner that provides the UPC barcode and a quantity purchased in a single barcode. The barcode scanner is a USB emulating a keyboard (typical out of the box configuration). I cannot use pre and/or post characters to differentiate the barcodes. The scanner provides a return key after each of the two codes. When I scan to Notepad, I get the UPC code, a return character, the quantity and another return character.
I am coding in C# using Visual Studio 2010 Pro. I have tried using a textbox that accepts returns and setting it to multiline but I only get the UPC code. I have found no way thus far to capture the quantity amount as well. HELP!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的目标是将代码放入文本框中,还是捕获代码并以某种方式在程序中使用它们?如果是后者,您可能希望制作自己的小部件来接受按键事件,然后自然而然地获取返回字符。
Is your goal to get the codes into a text box, or is your goal to capture the codes and use them in a program somehow? If it's the latter, you probably want to make your own widget that accepts key events, and then getting the return characters should come naturally.