On 27-Sep-08, at 7: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?
In older versions if you ever wanted to create the look of an Apple
listbox where alternate rows were colored whether they had data or not
you couldn't
So RB "paints" all visible rows so the check you have is necessary and
correct in versions released since 2005
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|