One alternate solution that might be useful with the subfile is to always advance the subfile screen so that the selected row, when returned, is always returned at the top of the subfile (In some operations that could mean that the file's repositioning automatically moves the records up so that the user finds the next desired record already on the screen.)


That allows the problematic issue to become a feature. Maybe.

On 11/15/2012 12:04 PM, James Lampert wrote:
It's been a while for me on this one; I'm sure I've done at least part
of this before, but I'm not sure if I've done it all. And I'm having
difficulty understanding the manual on it.

I have two different situations that look the same, but are probably
different: in one, I have an actual subfile screen, with a selection
column, while in the other, I have a fixed screen (actually, a series of
fixed screens) that only *looks* like a subfile with a selection column.

In both cases, when one selects a row, the program goes to another
screen, where one can perform an operation for that row, then returns to
the (real or fake) subfile screen from which one selected the row.

When one returns, the cursor always goes to the top of the selection column.

I've been asked to refine this, so that the cursor goes to the row one
just finished working with.

I believe CSRLOC is probably my answer for the "fake subfile" screen,
but the manual says this doesn't work for subfiles. And the manual entry
for SFLRCDNBR has the puzzling statement, "If the subfile record format
contains field selection, this keyword is not allowed." What exactly
does THAT mean?

Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2015 by MIDRANGE dot 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 here. If you have questions about this, please contact