× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On Wed, 29 Jan 2003, jang jewing wrote:
>
> I have the following doubts.

I think you mean "questions", as these are not doubts.

>
> 1.Under what circumstances should a display file be compiled with
> share(*yes).Some examples would be helpful.

I can't think of any reason to use share(*YES) on a display file.
I suppose if you had more than one program, one was writing to the
display, and another one is reading from that same display, you'd
want to use SHARE(*YES).  But, this doesn't seem like a good idea
to me.

>
> 2.How can we trap alt/ctrl keys in RPG???
>

This is a difficult question to answer.   Is the RPG program running on
a PC, where it has a keyboard attached directly to it?

In the usual scenario (at least for this list) an RPG program is running
on an iSeries/400 (previously called an AS/400).   The AS/400 has no
keyboard attached to it.   Instead, it communicates to a 5250 terminal.
The "alt" and "control" keys are not part of a standard 5250 keyboard...
and even if they were, individual keystrokes are not sent from the
terminal to the AS/400 -- instead, an entire screen full of data is
displayed to the user, and the data keyed into that screen is returned
only after it has all been typed in.

However, if you're writing an RPG program on a PC, then what you're asking
would make sense... in that circumstance,  you're dealing with a
character-at-a-time interface and a directly connected keyboard.

Of course, there are other possibilities... such as client/server
communications, etc, where you might or might not have the ability to talk
directly to the keyboard.

But in the "usual" circumstance, you can't.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.