Re: trying to check type when reading from datatable to array

Discussion in 'ASP .Net' started by Steve Flitcroft, Aug 10, 2004.

  1. try DBNull.value
    "Paul" <> wrote in message
    news:...
    > Hi I am reading in data from a table into a dynamic array and want to only
    > read in non NULL values. I have a simple loop and tried to put in the

    check
    > below but get the error DBNull is a type and can not be used as an

    expression.
    >
    > if ((tblrow)(0)).GetType <> DBNull then
    > 'read value into array
    > end if
    > thanks
    > --
    > Paul G
    > Software engineer.
     
    Steve Flitcroft, Aug 10, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. J. Babe
    Replies:
    1
    Views:
    8,432
    Kevin Spencer
    Aug 15, 2003
  2. Fredrik Rodin

    Sort a datatable and create a new datatable

    Fredrik Rodin, Feb 16, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    9,116
    paul.mariotti
    Sep 28, 2007
  3. =?Utf-8?B?Qmx1ZWZsb3dlcg==?=

    Casting DataTable to class inherit from DataTable

    =?Utf-8?B?Qmx1ZWZsb3dlcg==?=, Apr 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,038
    =?Utf-8?B?Qmx1ZWZsb3dlcg==?=
    Apr 2, 2004
  4. jg
    Replies:
    1
    Views:
    758
    =?Utf-8?B?U2hhaWxlc2ggSmFubnU=?=
    Aug 17, 2004
  5. Ersin Gençtürk
    Replies:
    1
    Views:
    3,556
    Ersin Gençtürk
    Oct 6, 2004
Loading...

Share This Page