is there a way to differentiate from Barcode Scanner entry from Keyboard key pressed values in PowerBuilder

北战南征 提交于 2019-12-08 08:16:29

问题


Please help me in differentiating the source of entry into textbox. I am currently using Barcode Scanner to enter a value into textbox also i need to enter the value manually from keyboard.

PowerBuilder 12.5 version.


回答1:


Use a singlelineedit control. Put the cursor there. User either scans barcode or types in entry.

The scanner simulates keyboard input. There is not really any way to differentiate between the two. If you use an OCX or COM type control to operate the scanner then you may be able to tell between them



来源:https://stackoverflow.com/questions/35148584/is-there-a-way-to-differentiate-from-barcode-scanner-entry-from-keyboard-key-pre

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!