I've implemented the TOPITEM functionality to preserve the current position in a list view when refreshing. It works great.
Except. If the user has clicked on column headings to resort the list, after the REFRESH the sort order is not the same -- it goes back to whatever sort order is specified in the LOOKUPWHERECLAUSE or, if there isn't any, it goes back to R:Base's natural order. In a case like this, the TOPITEM value isn't of any use, since it no longer relates to the selected item the way it did in the user-sorted list. Is there a way to: 1. Get the current sort order of the list view before I refresh and. . . 2. Reapply that list order after refreshing so that the listview will look just the same AFTER refreshing as it did before, even if the user has sorted the list? I can think of another situation in which I'd want to know the sort order as well -- if the user asks to print a report based on the records found in the list view. Any help gratefully accepted. -- Larry

