Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21096

how to check if a listview subitem(1) contains 0000000000 and display a msgbox error

$
0
0
i have a listview that contains phonenumbers
sometimes the user enters a 10 times zero in the customer phone number
how do i check if a phone number in the listview contains "0000000000"
i tried a code but i am missing something
Code:

    If LsVw.SelectedItem.SubItems(1) = "0000000000" Then
    MsgBox "some of the numbers in the list contains wrong number,please check the list again", vbExclamation
    Exit Sub
    End If


Viewing all articles
Browse latest Browse all 21096

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>