Results 1 to 3 of 3

Thread: is not dbnull.value?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    is not dbnull.value?

    Hi there. is there a way of saying "If dbnull.value <> null" in vb.net??

    i wanna check if the current field/cell is NOT dbnull

    thanks

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Re: is not dbnull.value?

    try
    VB Code:
    1. If Not IsDBNull(value) Then
    2.    'Do something
    3. End If
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251

    Re: is not dbnull.value?

    VB Code:
    1. If Not IsDBNull(value) Then
    2.  
    3. End If

    OR

    VB Code:
    1. If value.tostring = "" Then
    2.  
    3. End If
    ~Ryan





    Have I helped you? Please Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width