Xojo Plugin
Xojo Plugin
Load StringTable from a StringBuilder
Demonstrates how to load a StringTable from the text contained in a Chilkat StringBuilder object.Chilkat Xojo Plugin Downloads
Dim success As Boolean
success = False
Dim strTab As New Chilkat.StringTable
Dim sb As New Chilkat.StringBuilder
success = sb.Append("This is line 1" + EndOfLine.Windows)
success = sb.Append("An empty line follows..." + EndOfLine.Windows)
success = sb.Append(EndOfLine.Windows)
success = sb.Append("This is line 4" + EndOfLine.Windows)
success = strTab.AppendFromSb(sb)
Dim i As Int32
i = 0
Dim numStrings As Int32
numStrings = strTab.Count
While i < numStrings
System.DebugLog(Str(i) + ": " + strTab.StringAt(i))
i = i + 1
Wend