rtncsrloc in RPGLE

10 pts.
Tags:
AS/400
RPGLE
i am not able to use rtncsrloc keyword. should i define it in f spec or d spec and how we have to give the 3 argumnts to it... could you just give 1 example explaining all the steps.

Software/Hardware used:
as400 rpgle

Answer Wiki

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

Define this in each of your display record before any fields

A RTNCSRLOC(&CSRRCD &CSRFLD)
A RTNCSRLOC(*MOUSE &ROW &COL)
A CSRRCD 10A H
A CSRFLD 10A H
A ROW 3S 0H
A COL 3S 0H

When control returns from the display file, your program will have these four fields of data
the Display File Record name, Field Name, and the row and column on the screen that your cursor was pointing at. Another display file command can get the subfile record # and other commands can put your cursor on a spot on the screen, a field on the screen or on a specific subfile record.
Phil

Discuss This Question:  

 
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

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