<<
Using a variable listview with images. This listview 
looks at a temporary table to select
paid invoices. My problem that I am 
having is that when I issue a REFRESHLIST 
(which is required due to the 
images) I am taken to the top of the list which is undesireble. 

Trying to figure out a way to return to the last position but am not getting 
the syntax
right. Client unhappy. 
>>

You need to do the following (you probably know most of this):

1. Make sure the temporary table has a primary or unique key column (doesn't 
have to be declared, but the values must be unique).

2. Make sure a variable is defined in the form of the matching type.

3. Assign the variable to the list view on the property sheet.

4. During the process that refreshes the list view MAKE SURE THE VARIABLE IS 
NOT CLEARED and that its value is not changed.

If you do those things, and the new table (that the refresh is based on) still 
contains the record with the key value that was selected before the refresh, 
then the same record will be selected.  If the record is no longer in the table 
the variable will continue to the previously selected key value but no record 
will be selected.

--
Larry


Reply via email to