× 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.



"RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> wrote on 06/11/2019
01:00:02 PM:
----- Message from Gad Miron <gadmiron@xxxxxxxxx> on Tue, 11 Jun
2019 14:46:10 +0300 -----

To:

rpg400-l@xxxxxxxxxxxxxxxxxx

Subject:

Re: Field Names

Reminds me of a question I've posted on Code400 just a couple of years
back
(time flies when your'e having fun)

Indirect Addressing?
August 15th, 2005, 07:00 AM
Hello There,


A RPG (III or ILE) programing challenge I'm wrestling with:

Using Field_name parameter with the DDS RTNCRSLOC
I am able to tell (in the RPG program) the name of the screen field
the
cursor was on (the name is returned in the Field_name parameter).

Now, is there a way to retrieve the VALUE of that field on the screen?
(using pointers, APIs....)


Thanks
Gad

RTNCSRLOC is a field that contains the name of the field where your cursor
is. The field will contain its value. I simply use a select/when structure
to handle the fields I'm interested in. If you want something generic
(i.e., meaning handling any and all fields), that question has been asked
recently and the answer is essentially, "Not really." There are ways, but
they're not simple.

Michael Quigley
Computer Services
The Way International

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.