VB.NET
VB.NET
Load StringTable from a StringBuilder
Demonstrates how to load a StringTable from the text contained in a Chilkat StringBuilder object.Chilkat VB.NET Downloads
Dim success As Boolean = False
Dim strTab As New Chilkat.StringTable
Dim sb As New Chilkat.StringBuilder
sb.Append("This is line 1" & vbCrLf)
sb.Append("An empty line follows..." & vbCrLf)
sb.Append(vbCrLf)
sb.Append("This is line 4" & vbCrLf)
strTab.AppendFromSb(sb)
Dim i As Integer = 0
Dim numStrings As Integer = strTab.Count
While i < numStrings
Debug.WriteLine(i & ": " & strTab.StringAt(i))
i = i + 1
End While