vb equivalent

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    vb equivalent

    Hi

    What is the vb.net equivalent of vb set x = nothing?

    Thanks

    Regards


  • Terry Olsen

    #2
    Re: vb equivalent

    Dim x as Object = Nothing

    "John" <John@nospam.in fovis.co.ukwrot e in message
    news:OWHZzKSiHH A.596@TK2MSFTNG P06.phx.gbl...
    Hi
    >
    What is the vb.net equivalent of vb set x = nothing?
    >
    Thanks
    >
    Regards
    >
    >

    Comment

    • Newbie Coder

      #3
      Re: vb equivalent

      John

      x = Nothing

      --
      Newbie Coder
      (It's just a name)


      "John" <John@nospam.in fovis.co.ukwrot e in message
      news:OWHZzKSiHH A.596@TK2MSFTNG P06.phx.gbl...
      Hi
      >
      What is the vb.net equivalent of vb set x = nothing?
      >
      Thanks
      >
      Regards
      >
      >

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: vb equivalent

        "John" <John@nospam.in fovis.co.ukschr ieb:
        What is the vb.net equivalent of vb set x = nothing?
        'x = Nothing'. However, note that VB.NET uses a different finalization
        mechanism than VB6. So, setting variables to 'Nothing' is not always
        necesary.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://classicvb.org/petition/>

        Comment

        Working...