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
(DataFlex) SearchAllForContentDemonstrates the SearchAllForContent method.
Use ChilkatAx-win32.pkg Procedure Test Handle hoXml Variant vXBeginAfter Handle hoXBeginAfter Variant vXFound Handle hoXFound Boolean iSuccess Boolean iSearchForMore String sTemp1 Get Create (RefClass(cComChilkatXml)) To hoXml If (Not(IsComObjectCreated(hoXml))) Begin Send CreateComObject of hoXml End Get ComLoadXmlFile Of hoXml "qa_data/xml/pigs.xml" To iSuccess If (iSuccess <> True) Begin Get ComLastErrorText Of hoXml To sTemp1 Showln sTemp1 Procedure_Return End Get ComGetSelf Of hoXml To vXBeginAfter If (IsComObject(vXBeginAfter)) Begin Get Create (RefClass(cComChilkatXml)) To hoXBeginAfter Set pvComObject Of hoXBeginAfter To vXBeginAfter End Get ComSearchAllForContent Of hoXml vXBeginAfter "*pig*" To vXFound If (IsComObject(vXFound)) Begin Get Create (RefClass(cComChilkatXml)) To hoXFound Set pvComObject Of hoXFound To vXFound End Move True To iSearchForMore While (iSearchForMore = True) Get ComTag Of hoXFound To sTemp1 Showln sTemp1 Get ComContent Of hoXFound To sTemp1 Showln sTemp1 Showln "--" Send Destroy of hoXBeginAfter Move hoXFound To hoXBeginAfter Get ComSearchAllForContent Of hoXml vXBeginAfter "*pig*" To vXFound If (IsComObject(vXFound)) Begin Get Create (RefClass(cComChilkatXml)) To hoXFound Set pvComObject Of hoXFound To vXFound End Get ComLastMethodSuccess Of hoXml To iSearchForMore Loop Send Destroy of hoXBeginAfter End_Procedure |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.