By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,955 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,955 IT Pros & Developers. It's quick & easy.

only integer

P: n/a
hi all,

how can i retrieve the type if a value inserted in an inputbox.

what i want to do is make shure people only insert an integer type, if they
don't they get an error message.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click

inti = InputBox("Value", "Read frequenty")

End Sub

what should i add to this code that when the variable inti is'nt a number,
they get a massagbox "only numbers" .

kind regards Maarten

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.