Results 1 to 6 of 6

Thread: Is there a isNull function? in VB.Net

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2003
    Location
    SoCal
    Posts
    3

    Is there a isNull function? in VB.Net

    Do you know of any isnull function buried in a namespace or anywhere. I'm checking data as it comes in from DB. I just want to set it to blank string and to do it faster than take incoming data and .toString it.

    Thanks

  2. #2

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    System.DBNull
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    bah..too slow
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    To slow, and plus I had time to also put a link in....lol

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    for setting null value use

    VB Code:
    1. DBNull.[B]Value[/B]
    not tostring . and there are another checking null values in rows collection of dataset :

    VB Code:
    1. If MyDataset.Tables(MyTable).Rows(0).IsNull(0) Then
    2. MessageBox.Show("No password was configured")
    3. 'do this
    4. Else
    5. 'do this

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