Input Validation

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Dec 2007
Posts: 12
Reputation: tb808kid is an unknown quantity at this point 
Solved Threads: 0
tb808kid tb808kid is offline Offline
Newbie Poster

Input Validation

 
0
  #1
Dec 13th, 2007
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!
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 160
Reputation: kb.net is an unknown quantity at this point 
Solved Threads: 26
kb.net's Avatar
kb.net kb.net is offline Offline
Junior Poster

Re: Input Validation

 
0
  #2
Dec 13th, 2007
Hi,

  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
It is never about the number of languages you know, you either have the logic of programming or you don't ...

Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 12
Reputation: tb808kid is an unknown quantity at this point 
Solved Threads: 0
tb808kid tb808kid is offline Offline
Newbie Poster

Re: Input Validation

 
0
  #3
Dec 13th, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC