Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

VS 2008 Deleting letters from integer

$
0
0
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 ?

Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>