Hi
I am trying to query when a textbox is nothing, but it doesn´t seem to work, and I can´t see nothing wrong with it,the code:
I have a textbox which I leave empty. "If not isnothing(textbox.text)" still evaluates to true, so runs the code in "do sth", when I think it should ignore the "do sth " code.VB Code:
If Not IsNothing(TextBox1.Text) Then do sth end if
I have run this in debug mode, and the textbox has the value of texbox1.text ="" , so the textbox is actually nothing.
What is going on here?
Thanks.




Reply With Quote