VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This function will strip nulls from strings.

by Dr. John Nyhart (4 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Thu 6th July 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This function will strip nulls from strings.

Rate This function will strip nulls from strings.



    If (InStr(OriginalStr, Chr(0)) > 0) Then
        OriginalStr = Left(OriginalStr, _
         InStr(OriginalStr, Chr(0)) - 1)
    End If '»If (InStr(OriginalStr, Chr(0)) > 0) Then
    StripNulls = OriginalStr
End Function

Download this snippet    Add to My Saved Code

This function will strip nulls from strings. Comments

No comments have been posted about This function will strip nulls from strings.. Why not be the first to post a comment about This function will strip nulls from strings..

Post your comment

Subject:
Message:
0/1000 characters