Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hex representation of Enter Key using Bar code

660 views
Skip to first unread message

veron

unread,
Apr 22, 1999, 3:00:00 AM4/22/99
to
Hi,

Is there any as/400 manuals which have the hex values for the
Enter/function keys.

I am trying to write a program which the user will use the barcode
reader to scan in the multiple input lines, and instead of using the
Enter on the Keyboard to submit for processing, to scan in the "enter"
barcode. Thanks.

Veron


Andy Brenton

unread,
Apr 22, 1999, 3:00:00 AM4/22/99
to
Hi,

Don't know about the hex codes but . .
Why not have a field defined last on the screen,and set the 'automatic
record advance' keyword in the DDS. Scan in an arbitory code and this
should have the same effect as pressing Enter (I think)!

Regards,

Andy Brenton.

Jay Graves

unread,
Apr 22, 1999, 3:00:00 AM4/22/99
to
X'3F' is 'Auto Enter' and X'F1' is 'Enter'. (in byte 369 of the WORKSTN
INFDS)
I haven't tried it but I think the 'Auto Enter' should work for what you
want.
HTH.
Jay

veron wrote in message <371EFF98...@ispsvc.com.sg>...

Paul Nicolay

unread,
Apr 22, 1999, 3:00:00 AM4/22/99
to
Hi Veron,

The "Enter"-key has a hex F1 value in the AID byte... but if this value can
be used via a barcode reader is something else. All depends a bit on how
the reader is attached to the AS/400. Is this in between a keyboard cable
of a terminal ? Usually readers have codes for simulating those keys...
what about yours (ie. manual ???)

Kind regards,
Paul
-------------------


veron wrote in message <371EFF98...@ispsvc.com.sg>...

Hi,

Is there any as/400 manuals which have the hex values for the
Enter/function keys.

I am trying to write a program which the user will use the barcode
reader to scan in the multiple input lines, and instead of using the
Enter on the Keyboard to submit for processing, to scan in the "enter"
barcode. Thanks.

Veron

The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, Merck & Co., Inc. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.

Frank Healy

unread,
Apr 22, 1999, 3:00:00 AM4/22/99
to
Veron:

Generally, the barcode reader itself can be programmed to enter the
Enter key after the information being scanned. Check out the reference
manual for the device.

Frank

Steve Brazzell

unread,
Apr 22, 1999, 3:00:00 AM4/22/99
to
Veron,

My recommendation would be to NOT try to embed these control characters
into the bar code, itself, but to configure either the decoder (e.g. wedge
or other device) or the application to respond appropriately. Some bar
code symbologies are able to represent the entire ASCII character set
(e.g. Extended code 3 of 9), but many of the more common symbologies do
not have this capability. Even if you succeed in printing a bar code with
a Carriage Return (ASCII HEX '0D') you may limit other applications from
being able to use the bar code effectively.

I suggest either:

A. Configure the wedge you are using (assuming this is your method of
decoding the bar code) to transmit an ENTER keystroke at the end of each
bar code.

or...

B. Change your AS/400 application so that filling up a particular field on
the display causes ENTER to be automatically pressed (use the CHECK(ER)
keyword in the DDS).

Good luck.
Steve Brazzell

0 new messages