Checking for numeric value entered in text box in Visual Basic

前端 未结 6 1309
醉酒成梦
醉酒成梦 2021-01-18 19:21

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

6条回答
  •  长情又很酷
    2021-01-18 19:29

    You're just using the function incorrectly - you need to pass the string as a parameter.

    If IsNumeric(txtQuantity.Text) Then
    

提交回复
热议问题