Can someone give me a function to strip nulls from a string? Thanks!
[email protected] http://www.StockHawk.net Stock Blog http://www.warpedai.com Day Trading Software
Use the replace function Code: strText = Replace(strText, vbNull, "")
strText = Replace(strText, vbNull, "")
Iain, thats with an i by the way!
Code: Function StripNullChar(ByVal sIn As String) As String StripNullChar = Left(sIn, InStr(1, sIn, vbNullChar) - 1) End Function Usage Code: MyString = StripNullChar(MyString)
Function StripNullChar(ByVal sIn As String) As String StripNullChar = Left(sIn, InStr(1, sIn, vbNullChar) - 1) End Function
MyString = StripNullChar(MyString)
Forum Rules