bigracefan
Programmer
Hi,
I'm trying to test for no value selected in a listview. This is what I have. If nothing is seleced it takes the frist item in the list.
If lvMachine.ListItems.Count > 0 Then
If lvMachine.SelectedItem.Text = True Then
Mach_Num = lvMachine.ListItems (lvMachine.SelectedItem.Index).Text
Else
MsgBox "Test"
End If
End If
Thanks,
Pete
I'm trying to test for no value selected in a listview. This is what I have. If nothing is seleced it takes the frist item in the list.
If lvMachine.ListItems.Count > 0 Then
If lvMachine.SelectedItem.Text = True Then
Mach_Num = lvMachine.ListItems (lvMachine.SelectedItem.Index).Text
Else
MsgBox "Test"
End If
End If
Thanks,
Pete