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



If you use RTNCSRLOC(*RECNAME &RCD &FLD) in the DSPF record format in
question, &RCD contains the format name and &FLD contains the field name.
This way, the screen format can be completely rearranged and the RPG code
doesn't have to be touched.  It can continue to refer to the actual field
name in the prompting subroutine.

Of course, the ability to include the field's label in the "promptable" area
is lost with this technique.  The user must place the cursor directly in the
data field in question.   

Randy Dunfee
Dunfee Business Automation, Inc.


-----Original Message-----
From: Fisher, Don [mailto:Dfisher@xxxxxxxxxxxxxxxxx]
Sent: Thursday, December 30, 2004 3:33 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Retrieving Cursor Position from Screen.


The only problem with this approach, and I admit it's a minor one, is if the
user has moved the cursor off the field by a character or two.  If this has
happened, the the prompt won't be displayed and the cursor will go back to
the first field on the screen.  

I personally prefer to use internally defined cursor positions in lieu of
some way to identify the field header the way I can using HLPARA.

Donald R. Fisher, III
Project Manager
Roomstore Furniture Company
(804) 784-7600 extension 2124
DFisher@xxxxxxxxxxxxx


<clip>
A                                      RTNCSRLOC(*RECNAME &$CURREC &$CURFL-
A                                      D &$CURPOS)                         
A            $CURREC       10A  H
A            $CURFLD       10A  H
A            $CURPOS        4S 0H
A            CUSTNO         9S 0B 12 20

Every time the program returns from input, you can test for *IN04 and
$CurFld='yourFldName' to see if you need to display the pop-up.  You can
usually disregard the CURPOS and CURREC pieces....  
<clip>
-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

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.