It should work the way you have it.
The only problem I see is that if you clicked on the listbox anywhere
outside of a row -- if you only have a few rows, say, and you click in the
white space just beneath the last row -- the listindex will be -1, and
accessing me.cell(-1,4) would give you an out of bounds error. (You could
handle that eventuality by testing "if i > -1 then" before you try to access
the cell.)
But other than that, I can't see anything wrong with your code.
_______________________________________________
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>
|