Sample code for 30+ languages & platforms
AutoIt

Load StringTable from a StringBuilder

Demonstrates how to load a StringTable from the text contained in a Chilkat StringBuilder object.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oStrTab = ObjCreate("Chilkat.StringTable")
$oSb = ObjCreate("Chilkat.StringBuilder")

$oSb.Append("This is line 1" & @CRLF)
$oSb.Append("An empty line follows..." & @CRLF)
$oSb.Append(@CRLF)
$oSb.Append("This is line 4" & @CRLF)

$oStrTab.AppendFromSb($oSb)

Local $i = 0
Local $iNumStrings = $oStrTab.Count
While $i < $iNumStrings
    ConsoleWrite($i & ": " & $oStrTab.StringAt($i) & @CRLF)
    $i = $i + 1
Wend