Hi, I like to ask for a clarification about it. I have combobox.items(i) that go trough a for next loop for each index I need to check if its content (number) will be >=1 or <=10. Now I tried this one, but I know where the error might be, the + " Days" combination that it's a string and when checking in the if statement the text it give me an error of course. It's there any tip to check only a number in a integer + string combination on an if?
In case I can delete the + " days" and put it in an label so the combobox will be filled only with the integer part, and the if can work (if I'm right)
This is the part of code
ComboBox3.Items(i) = (365 - dysdiff).ToString + " Days"
If ComboBox3.Text.ToString >= 1 <= 10 & " Days" Then
MsgBox("post old", MessageBoxButtons.OK)
Else
End If
Next