On Sep 27, 2008, at 6:45 AM, osb@btcl.net.bd wrote:
Hello,
first day using 2008-4 from 5.5.5 so please be patient...
In a 5.5.5 project I had the cellbackgroundpaint event of a listbox
with
these 2 lines:
dim i as Integer
i = me.cellTag(row,1).IntegerValue
Running that project in 2008-4 I get an outofbound exception,
unless I write:
if row > me.ListCount-1 then
Return true
end if
i = me.cellTag(row,1).IntegerValue
May be I'm overlooking some new behavior. Can somebody explain me the
reason of the exception being raised?
The new behaviour is that, since Rb 2005, it now paints the
background of all possible rows visible in the Listbox. In 5.5.5 it
only painted the populated ones (ListCount-1). There is a way to
prevent this painting but I never bother with it so I can't tell you
off the top of my head. It's quite possibly the code you used. :)
Terry
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|