On 30/11/2004, at 2:20 PM, Will Leshner wrote:
On Mon, 29 Nov 2004 19:08:35 -0800 (PST), Jonathan Schraffenberger
<jonschraffenberger at yahoo dot com> wrote:
Hi Mike. Thanks for the reply. I still have a small
problem. The suggestion you made only works if I know
which row is going to be deleted at any given time.
But I won't. Is there a way of telling which row is
currently selected?
ListBox.ListIIndex is the currently selected row. It is both a setter
and a getter.
Deleting a row shifts the rows below up, so something like
currentRow = LB.listIndex
LB.removeRow(currentRow)
if LB.listCount > 0 then
LB.selected(currentRow) = true
OR
LB.listIndex = currentRow
end if
Would probably work. The If statement is to avoid an error if you
delete the last row in the box.
Mike
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|