Hi,
I want to convert this VB6 code to VB.NET:
However, I don't know what are replacements .NET version of VB.Left and VB.Right?
Please help me.
Thanks.
I want to convert this VB6 code to VB.NET:
Visual Basic:
Private Function StripNullChars(ByVal MyString As String) As String
Do While Len(MyString) > 0
If Asc(VB.Right(MyString, 1)) <> 0 Then Exit Do
MyString = VB.Left(MyString, Len(MyString) - 1)
Loop
StripNullChars = MyString
End Function
Please help me.
Thanks.