![]() |
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
(Delphi DLL) Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStrProvides instructions for replacing deprecated GetDt method calls with FileDateTimeStr. Note: This example requires Chilkat v11.0.0 or greater.
uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, ZipEntry, CkDateTime; ... procedure TForm1.Button1Click(Sender: TObject); var entry: HCkZipEntry; dtObj: HCkDateTime; dt: HCkDateTime; begin entry := CkZipEntry_Create(); // ... // ... // ------------------------------------------------------------------------ // The GetDt method is deprecated: dtObj := CkZipEntry_GetDt(entry); if (CkZipEntry_getLastMethodSuccess(entry) = False) then begin Memo1.Lines.Add(CkZipEntry__lastErrorText(entry)); Exit; end; // ... // ... CkDateTime_Dispose(dtObj); // ------------------------------------------------------------------------ // Do the equivalent using FileDateTimeStr. dt := CkDateTime_Create(); CkDateTime_SetFromRfc822(dt,CkZipEntry__fileDateTimeStr(entry)); CkZipEntry_Dispose(entry); CkDateTime_Dispose(dt); end; |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.