How to compare Val function with "" in Vb.Net
I am taking a user input a text box and then Validating it as follows:
Val(txt_score1.text)
Then I have to compare it with blank entry in that text box. Like this:
If (Val(txt_score1.Text) = "") Then....
I am receiving a conversion error. Because "" is String whereas Val is
returning Integer.
How to overcome this??
No comments:
Post a Comment