Results 1 to 3 of 3

Thread: Striping Nulls From Strip

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Can someone give me
    a function to strip nulls
    from a string?

    Thanks!

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    Use the replace function
    Code:
    strText = Replace(strText, vbNull, "")
    Iain, thats with an i by the way!

  3. #3
    Guest
    Code:
    Function StripNullChar(ByVal sIn As String) As String
        StripNullChar = Left(sIn, InStr(1, sIn, vbNullChar) - 1)
    End Function
    Usage
    Code:
    MyString = StripNullChar(MyString)

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