For the life of me..i cannot figure this out.

VB Code:
  1. intItemCount = Form1.ListView.ListItems.Count
  2.                   For a = 1 To intItemCount
  3.                                WhoMsg = GetText(Form1.List1.List(a - 1))
  4.                                Umsg = Split(WhoMsg, ":")
  5.                                TuMsg = Umsg(0)
  6.                     If InStr(Form1.ListView.ListItems.Item(a).Text, TuMsg) Then
  7.                         Form1.ListView.ListItems.Item(1).ListSubItems.Item(a).Text = Form1.ListView.ListItems.Item(1).ListSubItems.Item(a).Text + 1
  8.                     End If
  9.                   Next a

This bit of code, checks to see the listview item contains the classname (which TuMsg is). It works the first time around (and adds 1) but after that this: Form1.ListView.ListItems.Item(1).ListSubItems.Item(a).Text: gives me an index out of bounds error (there are 2 items)

I hope you understood, and i hope this is real easy