Results 1 to 1 of 1

Thread: Info: use vbNullString

  1. #1

    Thread Starter
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048

    Info: use vbNullString

    attention everyone: you should never ever be using "" to mean an empty string. use the constant vbNullString.

    "" makes the computer generate a null string
    vbNullString simply is a null string

    break the "" habit

    but, before you change all your If statements, consider this:

    VB Code:
    1. If StrTemp = vbNullString Then
    is slower than
    VB Code:
    1. If LenB(StrTemp) = 0 Then
    so code accordingly

    that is all
    Last edited by si_the_geek; Feb 8th, 2005 at 11:53 AM. Reason: title change

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