Link to home
Start Free TrialLog in
Avatar of Murugesh Perumal
Murugesh PerumalFlag for India

asked on

My requirement is to develop an application in power builder, which receives Scanned barcodes and decodes it

Hi,

My requirement is to develop an application in power builder, which receives Scanned barcodes and decodes it

The application should also be able to reveal hidden ASCII codes in the scanned barcodes.
Like:-

ASCII Codes
TAB - 9
BS Backspace  - 8
EOT End of Transmission - 4
FF Form Feed - 12      
Etc.

When scanned codes arrives at datawindow, rich text input, single line edit  it comes as one character at a time
So my logic would be is to take that character before it is written in Datawindow or rich text input and  find its ascii value and if it is less the 32 (which means it is  a hidden character)
I can give brackets around it and show in display screen. so that hidden characters are not missed out.

Eg Scanned code abc<TAB>def<FF>gh

Decoded code will be abc[09]def[12]gh

So I tried with EditChanged, itemchanged , KeyDown events but I am unable to get the character before it is written in datawindow. Because once it is been written in datawindow hidden characters will be missed out.

Is there any event in powerbuilder will  give me the scannedcode after it has been scanned but before it has been written in data window or rich text control,
Something like PreviewTextInput Event, which will preview the  text before writing it into the data window.

Thanks and regards,
BarCode_1.jpg
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.