mirzao
Active member
i have this code
but how if I want to increment the count every time it sees 503 or 30A or 707? I tried to use "or" and "," in between but doesn't work. And one more thing, if there is an error "Cast from string "30A" to type 'Double' is not valid." what should I do?
For Each str As String In listbox1.Items
If str = "503" Then count += 1
Next
If str = "503" Then count += 1
Next
but how if I want to increment the count every time it sees 503 or 30A or 707? I tried to use "or" and "," in between but doesn't work. And one more thing, if there is an error "Cast from string "30A" to type 'Double' is not valid." what should I do?