Quote:
Originally Posted by NovicePGM2011
This wouldn't work because we are talking about numbers not strings.
Because the MaskedTextBox is set to collect phone number.
I get the following error message.
IsEmpty is not a member of string.
Any other ideas?
Thanks Again
PGM
|
IsNullOrEmpty . . . . . ring any bells?
Plus your not looking at numbers, your looking at strings, regardless of the input data! Your checking whether the input is empty or not, then you check whether a number was entered, then you check the min max and all your other validations!
The Property of the maskedtextbox which holds the input is called .Text am I correct, then if I am correct surely the data type of said property is a string! The data type doesnt change dynamically with the input otherwise it would have data type object!