S
SSVegetto
Guest
I got program that calculates 10 percent of a number.
Ok when people enter the number into the textbox and click calculate I want to show the ten percent of a number and that works fine. But when people enter a letter(strings) into the textbox and hit calculate I want to display "error please insert a number instead"
I think I need a if statement but I dont know how it should look, also I want the error to show in the same textbox you enter the numbers in.
I guess this in the calculate button isn't going to work.
If txtSales = string then
txtSales = "error enter numbers"
End If
So I would appreciate if someone can help me, because I notice you guys use visual basic on some of your programs.
Ok when people enter the number into the textbox and click calculate I want to show the ten percent of a number and that works fine. But when people enter a letter(strings) into the textbox and hit calculate I want to display "error please insert a number instead"
I think I need a if statement but I dont know how it should look, also I want the error to show in the same textbox you enter the numbers in.
I guess this in the calculate button isn't going to work.
If txtSales = string then
txtSales = "error enter numbers"
End If
So I would appreciate if someone can help me, because I notice you guys use visual basic on some of your programs.