CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2004
    Location
    Coimbatore, TamilNadu, India
    Posts
    60

    Abt VbNullString

    What is the Difference between the Following Statements :

    txtName = ""

    txtName = VbNullString

    Which is the Better way to Follow & Why ?

  2. #2
    Join Date
    Aug 2004
    Location
    Bucharest, Romania... sometimes
    Posts
    1,039

    Re: Abt VbNullString

    This might be useful for you:
    http://www.codeguru.com/forum/showthread.php?t=310047

    Regards,
    Bogdan Apostol
    ESRI Developer Network

    Compilers demystified - Function pointers in Visual Basic 6.0
    Enables the use of function pointers in VB6 and shows how to embed native code in a VB application.

    Customize your R2H
    The unofficial board dedicated to ASUS R2H UMPC owners.

  3. #3
    Join Date
    Aug 2004
    Location
    Coimbatore, TamilNadu, India
    Posts
    60

    Re: Abt VbNullString

    Thx Bornish ..


    Interesting Link ..

    Suresh

  4. #4
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Abt VbNullString

    vbNullString is slightly faster than "", since vbNullString is not actually a string, but a constant set to 0 bytes, whereas "" is a string (consuming at least 4-6 bytes for just existing).
    Tom Cannaerts
    email: cakkie@cakkie.be.remove.this.bit
    www.tom.be (dutch site)

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

Featured