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



Kurt,

It sounds to me like you have some sort of control to position the
cursor to subfile B like DSPATR(PC) or CSRLOC(R C) active every time you
attempt to position to subfile D.

Thank you,
Matt Tyler
WinCo Foods, LLC
mattt@xxxxxxxxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Kurt Anderson
Sent: Tuesday, November 15, 2005 3:51 PM
To: RPG programming on the AS400 / iSeries
Subject: Multiple record formats on screen - Position Cursor

Hi all,
 
I've got 5 record formats on a screen.
A. Standard Header (line 1)
B. Subfile Control
C. Subfile
D. Subfile Control
E. Subfile.
 
B and E have data entered.
 
Write A;
Write B;
ExFmt D;
Read B;     // to get the values entered on B
 
When I go through my validation checks, I can position the cursor
wherever I want in B.
But when there are no errors in B, and there is one in subfile E, I
can't position the cursor down there get the correct page of the subfile
to display, but can't seem to position down there.
 
My Subfile RRN for D is defined as:
     A            ITMDSP         4S 0H      SFLRCDNBR
 
I tried using:
     A            ITMDSP         4S 0H      SFLRCDNBR(CURSOR)
but that resulted in me not being able to position the cursor in B.
 
Any ideas?
 
Note: The way the screen flows, I can't take the data entry fields from
B and put them in D (that would resolve my situation).
 
Kurt Anderson
Application Developer
Highsmith Inc.
W5527 State Road 106, P.O. Box 800
Fort Atkinson, WI 53538-0800
TEL (920) 563-9571  FAX (920) 563-7395
EMAIL kjanderson@xxxxxxxxxxxxx
 

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.