Thanks Arnaud

That fixed the problem.

Regards

Paul

On 12/13/06, Arnaud Nicolet <[EMAIL PROTECTED]> wrote:
One of the major changes between RB 5.5 and the newer versions is
that the listbox sends a "CellBackgroundPaint" event to every row in
the listbox (not only to the rows that contain data, but also to the
empty rows). Therefore, the problem you're experiencing does not come
from the column parameter, but from the row parameter. You have to
check if the row is not empty before calliing History.Cell(row,3),
simply by writing:

if row<History.ListCount  then
CellStr=History.Cell(row,3)
end if

P.S: I suggest you to read the file "Important changes for 5.5
projects.txt" in the "Read me" folder of your realbasic application's
folder. It contains informations about modified behaviours, such as
the one you are actually getting.

Hope this helps.

Le 13 déc. 06 à 02:15 Matin, Paul Rehill a écrit:

> In moving from RB5.5 to RB2006R4, I have found that the following line
> of code now triggers an OutOfBoundsException error for a listbox named
> "History" that is shown when opening a window.
>
> CellStr=History.Cell(row, 3)
>
> I am unsure why this is the case as the listbox should have five
> columns and think that the CellBackgroundPaint event should only
> return the row values for rows that exists.
>
> Any ideas?  I am currently testing on Windows XP.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to