![]() |
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
(Visual FoxPro) Transition from Http.S3_DeleteMultipleObjects to Http.S3_DeleteObjectsProvides instructions for replacing deprecated S3_DeleteMultipleObjects method calls with S3_DeleteObjects. Note: This example requires Chilkat v11.0.0 or greater.
LOCAL loHttp LOCAL lcBucketName LOCAL loSa LOCAL loSt LOCAL loResponseObj LOCAL loResponseOut LOCAL lnSuccess * For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Http') loHttp = CreateObject('Chilkat.Http') lcBucketName = "testBucket" * For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringArray') loSa = CreateObject('Chilkat.StringArray') loSa.Append("starfish.jpg") loSa.Append("clam.jpg") loSa.Append("shark.jpg") * For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringTable') loSt = CreateObject('Chilkat.StringTable') loSt.Append("starfish.jpg") loSt.Append("clam.jpg") loSt.Append("shark.jpg") * ------------------------------------------------------------------------ * The S3_DeleteMultipleObjects method is deprecated: loResponseObj = loHttp.S3_DeleteMultipleObjects(lcBucketName,loSa) IF (loHttp.LastMethodSuccess = 0) THEN ? loHttp.LastErrorText RELEASE loHttp RELEASE loSa RELEASE loSt CANCEL ENDIF * ... * ... RELEASE loResponseObj * ------------------------------------------------------------------------ * Do the equivalent using S3_DeleteObjects. * Your application creates a new, empty HttpResponse object which is passed * in the last argument and filled upon success. * For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.HttpResponse') loResponseOut = CreateObject('Chilkat.HttpResponse') lnSuccess = loHttp.S3_DeleteObjects(lcBucketName,loSt,loResponseOut) IF (lnSuccess = 0) THEN ? loHttp.LastErrorText RELEASE loHttp RELEASE loSa RELEASE loSt RELEASE loResponseOut CANCEL ENDIF RELEASE loHttp RELEASE loSa RELEASE loSt RELEASE loResponseOut |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.