Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(AutoIt) StringBuilder GetNthDemonstrates the GetNth method.
; The GetNth method is handy for getting parts from delimited strings. ; For example: $oSb = ObjCreate("Chilkat.StringBuilder") $oSb.Append("red,blue,""green,purple"",,yellow") Local $sDelimiterChar = "," Local $bExceptDoubleQuoted = True Local $bExceptEscaped = True ; Prints "[red]" ConsoleWrite("[" & $oSb.GetNth(0,$sDelimiterChar,$bExceptDoubleQuoted,$bExceptEscaped) & "]" & @CRLF) ; Prints "[blue]" ConsoleWrite("[" & $oSb.GetNth(1,$sDelimiterChar,$bExceptDoubleQuoted,$bExceptEscaped) & "]" & @CRLF) ; Prints "[green,purple]" ConsoleWrite("[" & $oSb.GetNth(2,$sDelimiterChar,$bExceptDoubleQuoted,$bExceptEscaped) & "]" & @CRLF) ; Prints "[]" ConsoleWrite("[" & $oSb.GetNth(3,$sDelimiterChar,$bExceptDoubleQuoted,$bExceptEscaped) & "]" & @CRLF) ; Prints "[yellow]" ConsoleWrite("[" & $oSb.GetNth(4,$sDelimiterChar,$bExceptDoubleQuoted,$bExceptEscaped) & "]" & @CRLF) ; Prints "[]" ConsoleWrite("[" & $oSb.GetNth(5,$sDelimiterChar,$bExceptDoubleQuoted,$bExceptEscaped) & "]" & @CRLF) |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.