B4J Question Check if Combobox value is Null

Discussion in 'B4J Questions' started by sigster, Apr 15, 2015.

  1. sigster

    sigster Active Member Licensed User

    Hi
    I am try to check if Combobox Value is Null in button

    Is this not how it is done ? = Cbo_level.Value = 0

    Regards
    Sigster

    Code:
    If name.Text.Length =0 OR login.Text.Length =0 OR Cbo_level.Value = 0 Then
         
            message.Text = 
    "textbox cannot be empty" 
            
    Return False
    End If
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    No. 0 is not null.

    Code:
    If Cbo_level.Value = Null Then
     
    giga likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice