Null

Is there an equivalence to IsNull()



Answer this question

Null

  • Ryan Osman

    HI,

    I guess the null equivalent of visual basic is nothing, So you can check it this way:

    if myobjVar is Nothing then
    // you code
    //end if

    But if your referring to database then you can do it on the code posted by ar1ndam.

    cheers,

    Paul June A. Domag



  • traitor28

    if u r dealin with Data base null value then

    e.g.

    If <DataReader>.GetValue(0) Is DBNull.Value
    // it is null; do something
    End If

  • Yiling Lai

    hi,

    somewhat = null

    hope that helps



  • Null