Hi, All, I am kind of new to VB08 and have a problem I thought you might be able to help with. I have 2 listviews that hold FileName, Size, ModifyDate. I need to compare the contents of them. If the file exists on one but not the other highlight it in red. If Size or ModifyDate of 2 is different than listview1 need to highlight the listview2 row in yellow. My main concern is the VB.2008 does not have indexing making it hard to move around as I would in VB. I am not even sure I know how to compare the values correctly in a listview. I was thinking of the logic below but I am not VB08 fluent enough to know the correct coding.
Do while not EOC
For x = 1 to listview.count
For y = 1 to listview 2 count then
If listview1.FileName(x) > listview2.FileName
Highlite listview1.row(x) Red
Next x
ElseIf listview1.FileName(x) < listview2.FileName
then
Highlite listview2.row(Y) Red
Next y
Else
If Listview1.Size <> Listview2. Size then or
Listview1.ModifyDate <> listiview2.modify
Highlite listview2.row(Y) yellow
Next X
Next Y
E
ndif
Endif
Loop
Loop
End while
Do while not EOC
For x = 1 to listview.count
For y = 1 to listview 2 count then
If listview1.FileName(x) > listview2.FileName

Highlite listview1.row(x) Red
Next x
ElseIf listview1.FileName(x) < listview2.FileName

Highlite listview2.row(Y) Red
Next y
Else
If Listview1.Size <> Listview2. Size then or
Listview1.ModifyDate <> listiview2.modify
Highlite listview2.row(Y) yellow
Next X
Next Y
E

Endif
Loop
Loop
End while