|
If you are using the CHECK(ER) keyword on your DDS will this distinguish
between that and if a user physically pressed the enter key?
Dave Parnin
--
Nishikawa Standard Company
324 Morrow Street
Topeka, IN 46571
260-593-2156 ext. 621
daparnin@xxxxxxxxxxxxxx
"Ambroise, Pierre
\(ED\)" To: "RPG programming
on the AS400 / iSeries"
<pambroise@everglades <rpg400-l@xxxxxxxxxxxx>
direct.com> cc:
Sent by: Subject: RE: when user
presses ENTER key in Display screen
rpg400-l-bounces@midr How to detect it in an
RPG program?
ange.com
09/01/2005 08:19 AM
Please respond to RPG
programming on the
AS400 / iSeries
There is an Hexadecimal value associated with the enter key. The
hexadecimal value for the enter key is X'F1'. On your display file
information data structure (INFDS), POSITION 369 to 369, you need to define
an alpha field. That field will tell you which key has been pressed. You
need to define as a constant the name of the enter key that you are going
to use.
Example:
* Display File
FTEST01 CF E Workstn InfdS(DSPDS)
D #ENTER C CONST(X'F1')
* Display information data Structure
D DSPDS SDS
D @FKEY 369 369
IN YOUR LOGIC, you will say;
If @FKEY = #ENTER
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of M.Effenberg@xxxxxxxxxxxx
Sent: Thursday, September 01, 2005 5:10 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: when user presses ENTER key in Display screen How to detect it
in an RPG program?
> My problem is because of the lack any such indicator associated with the
ENTER
> Key .In the program I need to figure out using a single IF condition
whether user
> Has pressed the ENTER key.
Hi Shijith,
i'm not that pro then it comes to interactive programs, but in our
displayfiles we define a valid command key.
VLDCMDKEY(26 'return')
on filelevel.
I guess then you could do a
if *in26=*on
This should be true if the user just hits enter.
If the user presses F1 to leave the display *in26 shouldn't be *on.
greets,
Martin
----------------------------------------------------------------------------------
Offergeld Zentralverwaltung GmbH & Co. KG
IT-Anwendungsentwicklung
Grüner Weg 1-3
52146 Würselen/ Deutschland
Tel.: +49 2405-456-267
Fax: +49 2405-456-285
eMail: m.effenberg@xxxxxxxxxxxx
http://www.offergeld.de
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.