I'm trying to make some of my RB5.5.5 code compatible with RB2006r2.

In the CellBackgroundPaint event of a Listbox, the following is fine in RB
5.5.5, but causes an OutOfBounds exception in 2006r2.

  If me.CellTag(row,0) <> "CategoryRow" then
      // Do something here.
  End If

What is the proper way of dealing with this in RB2006r2 (or later)?  I know
that, for some reason, we have to check if there are rows in the Listbox,
but checking for ListCount first doesn't make a difference either.

Thanks.

RB5.5.5 and a mostly unused copy of 2006r2.
WinXP, 2.2 GHz, 2G RAM

_______________________________________________
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