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




This works.  It isn't elegant.   You can place the cursor by Row & Column.  What we did was to write an error message for each filed we cared about.  The last positions of the error message were saved for the field's row and column.  When we needed to position the cursor we looked up an error message and substringed row and column.  It worked in the early 1980s so I'd expect it still works.

(I am not proud of this solution except that it solved the problem.)
 
------------------------------------------------
Booth Martin
Booth@MartinVT.com
http://www.MartinVT.com
-----------------------------------------------



"Joe Giusto II \(E-mail\)" <juicenetdps@crosswinds.net>
Sent by: rpg400-l-admin@midrange.com

08/16/2001 11:29 AM
Please respond to rpg400-l

       
        To:        "RPG400-L@midrange. com \(E-mail\)" <RPG400-L@midrange.com>
        cc:        
        Subject:        Position Cursor on a Display File



I recently learned about positioning the cursor in a display file by using
the CSRLOC keyword and setting the field values to the desired line and
column before writing the display.

Does anyone know of a way to get these values based on field name in the
display file so that I will not have to hard code the row and column in my
program?  (outside of storing the value in a hidden field in the display
file as I have already been shown).

The purpose being to allow the fields to be moved around on the display file
without having to change the hard coded values for positioning the cursor.

TIA

Joe Giusto II
Programmer/Analyst
Ritz Camera
Beltsville, MD
301-419-3209 x347
410-813-2812 x347


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com





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.