Retrieving field name from screen using INFDS in RPGLE

35 pts.
Tags:
AS/400
Hi, anyone know how to retrieve the field name from screen using INFDS in RPGLE program? Thanks.
eg, A screen with 10 field, when i press f1 at one of the field, I will able to know the field name maybe field1. Is it possible?
Now am able to identified the cursor row and column but how i can determine the field name?
Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

now I am able to identified the location through column n row by how I determine the field name with the column n row?

thanks

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    Field name but not using INFDS add this to the Display record - on return to the rpg program the field FIELD will contain the FieldName A RTNCSRLOC(&FORMAT &FIELD) A ROW 3S 0H A COLUMN 3S 0H A FORMAT 10A H A FIELD 10A H
    49,590 pointsBadges:
    report
  • philpl1jb
    Sorry ROW and COLUMN we not necessary A RTNCSRLOC(&FORMAT &FIELD) A FORMAT 10A H A FIELD 10A H
    49,590 pointsBadges:
    report
  • TomLiotta
    The RTNCSRLOC() keyword might not be specified. In such a case, the CURSOR area of the INFDS can be used. CURSOR can be broken into ROW and COLUMN. Those can be used to examine the list of fields in the display file record formats and to determine which field occupies that location. Much more difficult than adding RTNCSRLOC() to the DDS, but sometimes you can't change the DDS. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following