Hi !
I have made a simple program where you type how much you want to do something (Dim howmuch As Integer) and then howmuch = TextBox1.Text and it works, but when i type a letter instead of number (for example, i write asd against 30) it crashes the program.
Is there a way to delete ANY other character than 1,2,3,4,5,6,7,8,9,0 ? I have a idea to use replace function, but then i would need to replace every single character that is not a number :D
Any ideas ?
I have made a simple program where you type how much you want to do something (Dim howmuch As Integer) and then howmuch = TextBox1.Text and it works, but when i type a letter instead of number (for example, i write asd against 30) it crashes the program.
Is there a way to delete ANY other character than 1,2,3,4,5,6,7,8,9,0 ? I have a idea to use replace function, but then i would need to replace every single character that is not a number :D
Any ideas ?