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



1> Retrieve the row/column location using the QUSLFLD api; there are
several examples available.
2> Use the column in the CSRLOC.
3> Based on the number of rows in the subfile; calculate the subfile row
to be displayed.  Total Subfile records/Sfl Page; move reminder....
4> Use #3 as the row

5> Don't forget to set the SFLRECNBR correctly.

Michael


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of AGlauser@xxxxxxxxxxxx
Sent: Monday, April 10, 2006 7:17 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: How to Position Cursor to particular Field of Particular Row
in Subfile ?

Check out the CSRLOC DDS keyword.  You can use it to specify the exact row
and column that the cursor will go to.  It is not ideal, as you need to
hard-code the field positions, but it is the only option as far as I know
for positioning the cursor in a subfile.

Hope this helps,
Adam





"Luqman" <luqman@xxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
10/04/2006 07:52 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
rpg400-l@xxxxxxxxxxxx
cc

Subject
How to Position Cursor to particular Field of Particular Row in Subfile ?






How do I set my cursor to Column No. 3 of Row No. 5 ?

I can set the Row No. 5 with SFLRCDNBR=5 but it goes to Column No. 1 of 
that
row, how can I set the Column No. 3 ?

I tried using Position Cursor of Column No. 3 and set the Indicator but
after putting the Indicator *On, it goes to Row No. 1, Column No. 3.

Any idea please ?

Best Regards,

Luqman




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.