Assigning value to null

Discussion in 'ASP .Net' started by Steve Caliendo, Jun 8, 2004.

  1. Hi,

    How do I set a variable to be null? I want to update a set in a database,
    and in some cases I would like a particular field to remain unchanged, or
    null. I'm building a query string based on an array, and so I would like to
    set a(i,5) to be null.

    Thanks,

    Steve
     
    Steve Caliendo, Jun 8, 2004
    #1
    1. Advertising

  2. Steve Caliendo

    Raterus Guest

    a(i,5) = System.DBnull.Value

    "Steve Caliendo" <> wrote in message news:%...
    > Hi,
    >
    > How do I set a variable to be null? I want to update a set in a database,
    > and in some cases I would like a particular field to remain unchanged, or
    > null. I'm building a query string based on an array, and so I would like to
    > set a(i,5) to be null.
    >
    > Thanks,
    >
    > Steve
    >
    >
     
    Raterus, Jun 8, 2004
    #2
    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. Replies:
    5
    Views:
    26,691
    Mike Schilling
    Mar 29, 2006
  2. Col
    Replies:
    1
    Views:
    627
    peter koch
    Apr 21, 2006
  3. Replies:
    31
    Views:
    847
    Ron Natalie
    Oct 17, 2006
  4. Andy
    Replies:
    1
    Views:
    162
    Eidolon
    May 7, 2004
  5. weston
    Replies:
    1
    Views:
    253
    Richard Cornford
    Sep 22, 2006
Loading...

Share This Page