![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(DataFlex) Extract Files from MIMEExtract files from a MIME message. Note: This example requires Chilkat v11.0.0 or greater.
Use ChilkatAx-win32.pkg Procedure Test Boolean iSuccess Handle hoMime Variant vSt Handle hoSt Integer n Integer i String sTemp1 Move False To iSuccess // This example requires the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. Get Create (RefClass(cComChilkatMime)) To hoMime If (Not(IsComObjectCreated(hoMime))) Begin Send CreateComObject of hoMime End // Load a MIME document from a file: // (.mht and .eml files contain MIME). Get ComLoadMimeFile Of hoMime "mst.mht" To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoMime To sTemp1 Showln sTemp1 Procedure_Return End Get Create (RefClass(cComChilkatStringTable)) To hoSt If (Not(IsComObjectCreated(hoSt))) Begin Send CreateComObject of hoSt End Get pvComObject of hoSt to vSt Get ComPartsToFiles Of hoMime "/temp/mimeParts" vSt To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoMime To sTemp1 Showln sTemp1 Procedure_Return End Get ComCount Of hoSt To n // Display the paths of the files created: Move 0 To i While (i < n) Get ComStringAt Of hoSt i To sTemp1 Showln sTemp1 Move (i + 1) To i Loop End_Procedure |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.