P portroe Dec 15, 2003 #1 How can I check that the correct value has been entered in an inputbox, for example 'four digits' representing year thanks portroe
How can I check that the correct value has been entered in an inputbox, for example 'four digits' representing year thanks portroe
B Brian Henry Dec 15, 2003 #2 regular expressions... there is a regex class libary built into .NET, have a look at that
S Scott M. Dec 15, 2003 #3 dim x as string = inputbox("message") if len(x) = 4 then..... or you could check x agains a regular expression.
dim x as string = inputbox("message") if len(x) = 4 then..... or you could check x agains a regular expression.
H Herfried K. Wagner [MVP] Dec 16, 2003 #4 * portroe said: How can I check that the correct value has been entered in an inputbox, for example 'four digits' representing year Click to expand... 'String.Len', 'String.Length', 'IsNumeric', 'Double.TryParse', 'System.Text.RegularExpressions.Regex', ...
* portroe said: How can I check that the correct value has been entered in an inputbox, for example 'four digits' representing year Click to expand... 'String.Len', 'String.Length', 'IsNumeric', 'Double.TryParse', 'System.Text.RegularExpressions.Regex', ...