Public Function StripNilCharacterForward( _
ByVal vLine As Variant _
) As Variant Assuming
Dim S As String
S = String$(128, 0)
Mid$(S, 1, 4) = "Test"
for example
S = StripNilCharacterForward(S)
leaves
S = "Test"See also: LeftOfFirstMatch FunctionvLine: The string whose trailing nil-terminated portion is to be removed. Function returns Null if vLine is Null or cannot be fixed up to a String (Behavior #1).
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.