有没有办法与PowerBuilder中的键盘按键值与Barcode Scanner条目区分开 [英] is there a way to differentiate from Barcode Scanner entry from Keyboard key pressed values in PowerBuilder

查看:97
本文介绍了有没有办法与PowerBuilder中的键盘按键值与Barcode Scanner条目区分开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我区分输入文本框的来源。
我当前正在使用条形码扫描仪在文本框中输入值,我也需要从键盘手动输入值。

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版本。

PowerBuilder 12.5 version.

推荐答案

使用singlelineedit控件。将光标放在此处。用户可以扫描条形码或输入条目。

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

扫描仪模拟键盘输入。实际上,没有任何方法可以区分两者。如果您使用OCX或COM类型控件来操作扫描仪,则可以在它们之间进行区分

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

这篇关于有没有办法与PowerBuilder中的键盘按键值与Barcode Scanner条目区分开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆