M
MD Cobb
Is this problem only in VB.NET 2003 or in the actual
framework? Just to backtrack the length is updated (data
updated) but the value is always returned as null string
when the first character is null.
Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
MsgBox("After Get String Value Is: " & GetString
())
TextBox1.Text = GetString()
End Sub
Public Function GetString() As String
Dim newChar As Char
Dim str As String
str += newChar
str += "4"
MsgBox(str)
MsgBox(str.Length)
Debug.WriteLine(str)
Return str
End Function
framework? Just to backtrack the length is updated (data
updated) but the value is always returned as null string
when the first character is null.
Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
MsgBox("After Get String Value Is: " & GetString
())
TextBox1.Text = GetString()
End Sub
Public Function GetString() As String
Dim newChar As Char
Dim str As String
str += newChar
str += "4"
MsgBox(str)
MsgBox(str.Length)
Debug.WriteLine(str)
Return str
End Function