Larry,

Try using the itemindex property in the on click eep

  SET VAR vitem TEXT
  SET VAR vitemint INTEGER
  GETPROPERTY listviewid itemindex 'vitem'
  SET VAR vitemint = .vitem
  SET VAR vnextitem = (.vitemint + 1)
  SET VAR vnextitemtxt TEXT = (CTXT(.vnextitem))
  PROPERTY listviewid itemindex .vnextitemtxt

If you're removing the item from the list view, you may not need to add 1, 
because once you use 'refreshlist', the next item will have the same item 
index as the one you just removed (I think.)

Dawn




Lawrence Lustig <[EMAIL PROTECTED]> wrote on 05/27/2008 11:20:33 AM:

> I'm building a selection dialog in which two variable lookup 
> listviews are used next to each other.
> 
> My issue that when a user takes an item from one listview and moves 
> it to the other and I've updated the listviews so that the item 
> moved from the left list to the right one, I want the _next_ item in
> the listview from which I removed the item to be selected automatically.
> 
> I can't do this by going out to the table and figuring out what the 
> next record is and setting the control variable because the user may
> have resorted the list with header clicks (great feature!)
> 
> What I need is a way to force the list view to select the next 
> record, either by knowing the index of the item I just moved or some
> other method.
> 
> Has anyone solved this problem?
> --
> Larry

Reply via email to