Results 1 to 3 of 3

Thread: null value in date property

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    15

    null value in date property

    my problem is that

    dim var1 as date
    var1=null

    is this possible

  2. #2
    Fanatic Member Strider's Avatar
    Join Date
    Sep 2004
    Location
    Dublin, Ireland
    Posts
    612

    Re: null value in date property

    var1 = nothing

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Re: null value in date property

    Hi,

    Null has been discarded in VB.NET. Use

    var1 = Nothing to clear the variable

    or
    var1 = CDate("") to clear the value of the variable.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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