inputbox check

  • Thread starter Thread starter portroe
  • Start date Start date
P

portroe

How can I check that the correct value has been entered in an inputbox,
for example 'four digits' representing year

thanks

portroe
 
regular expressions... there is a regex class libary built into .NET, have a
look at that
 
dim x as string = inputbox("message")

if len(x) = 4 then.....

or you could check x agains a regular expression.
 
* portroe said:
How can I check that the correct value has been entered in an
inputbox, for example 'four digits' representing year

'String.Len', 'String.Length', 'IsNumeric', 'Double.TryParse',
'System.Text.RegularExpressions.Regex', ...
 
Back
Top