943,837 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 2416
  • VB.NET RSS
Dec 13th, 2007
0

Input Validation

Expand Post »
Hello!

I'm trying to find out how to validate input from a textbox, I want to make sure it is an integer within a certain range and that the destination variable is big enough for it. Sorry if this is stupid question, I just can't find anything and it's starting to annoy me!


Thank!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tb808kid is offline Offline
12 posts
since Dec 2007
Dec 13th, 2007
0

Re: Input Validation

Hi,

VB.NET Syntax (Toggle Plain Text)
  1. If IsNumeric(Me.txtInput.Text) And Me.txtInput.Text > 10 And Me.txtInput.Text < 100 Then
  2.  
  3. 'you action
  4.  
  5. End If
Reputation Points: 13
Solved Threads: 29
Junior Poster
kb.net is offline Offline
169 posts
since Aug 2007
Dec 13th, 2007
0

Re: Input Validation

Thanks very much KB, I knew it would something like that, I just don't have any decent recources on VB. This worked flawlessly for my project.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tb808kid is offline Offline
12 posts
since Dec 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: mediaplayer crash in Windows 2000
Next Thread in VB.NET Forum Timeline: please help me about that





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC