Results 1 to 3 of 3

Thread: check for null-string *resolved*

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2003
    Location
    Gent
    Posts
    166

    check for null-string *resolved*

    Code:
    if not DTR("pro_weight").value is null
    Txtweight.text = DTR("pro_weight")
    end if

    error is -> BC30822: 'null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.

    i'm used to programming in vb, and i don't think this can be done this way in vb.net

    what is the way to do it? I'm just checking if the field pro_weight is null or not (since setting Txtweight.text = DTR("pro_weight") where dbfield pro_weight is null will result in an error too...
    Last edited by demoti; Mar 16th, 2004 at 05:00 AM.
    never argue with an idiot, he will bring you down to his level and will beat you through experience

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