AutoIt
AutoIt
StringBuilder RemoveAfterFinal
Demonstrates the StringBuilder.RemoveAfterFinal method.The GetBefore method was added in Chilkat v9.5.0.77
Chilkat AutoIt Downloads
Local $bSuccess = False
$oSb = ObjCreate("Chilkat.StringBuilder")
$bSuccess = $oSb.Append("abc::def::ghi")
; Replace the 1st occurrence of a substring with another string.
Local $bFound = $oSb.ReplaceFirst("::","-")
ConsoleWrite("bFound = " & $bFound & @CRLF)
ConsoleWrite("sb contains: " & $oSb.GetAsString() & @CRLF)
; Output is:
; bFound = True
; sb contains: abc-def::gh