I'm writing a little function to interact with a user inputting length in a form like 1'-11" Or something similar. I need to verify that both ' and " are used. However... I can't figure out how to get vb.net to recognize that I want to check if " is used and not use " to bracket a string.
I need to add Or """Code:For i = 0 To sString.Count - 1 If Not sString(i) = "1" Or "2" Or "3" Or "4" Or "5" Or "6" Or "7" Or "8" Or "9" Or "0" Or "." Or "-" Or "'" Or "" Then 'String is incorrect format, show msgbox error End If Next
Any thoughts?





Reply With Quote