Trap the null value?

Discussion in 'Questions (Windows Mobile)' started by conf, Jul 7, 2007.

  1. conf

    conf Member

    I trap the null value input of Textbox with this code:

    Code:
    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 :D
     
  2. agraham

    agraham Expert Licensed User

    If TextBox.Text = "" OR TextBox.Text =" " then
    ...
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    If you want to ignore spaces you can check:
    If StrReplace (Textbox.Text," ","") = "" then ...
     
  4. conf

    conf Member

    Yeah, you're great !!! :D
     
Loading...