I am working on a program for my Visual Basic class and have a quick question. One of the things we were encouraged to do was to check to make sure the quantity entered in a
Use Regex.IsMatch:
Public Function isNumeric(input As String) As Boolean Return Regex.IsMatch(input.Trim, "\A-{0,1}[0-9.]*\Z") End Function