gettingstarted
[Top] [All Lists]

RE: Getting data out of a ListBox cell

To: "'Getting Started'" <gettingstarted at lists dot realsoftware dot com>
Subject: RE: Getting data out of a ListBox cell
From: "Walter Purvis" <wpurvis7 at bellsouth dot net>
Date: Thu, 30 Sep 2004 02:37:27 -0400
Cc:
Delivered-to: gettingstarted at lists dot realsoftware dot com
Thread-index: AcSmrmTd9rL+1yZnRPKLFydLDE5bEQACKvyw
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>

<Prev in Thread] Current Thread [Next in Thread>