C conf Member Jul 7, 2007 #1 I trap the null value input of Textbox with this code: B4X: If Textbox.Text = "" then ... ... ... It's ok but if the value is " " (space), it's can't trap. Do you have any idea? Thank you
I trap the null value input of Textbox with this code: B4X: If Textbox.Text = "" then ... ... ... It's ok but if the value is " " (space), it's can't trap. Do you have any idea? Thank you
agraham Expert Licensed User Longtime User Jul 7, 2007 #2 If TextBox.Text = "" OR TextBox.Text =" " then ...
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2007 #3 If you want to ignore spaces you can check: If StrReplace (Textbox.Text," ","") = "" then ...