Delphi ActiveX
Delphi ActiveX
Get Version of Chilkat
Demonstrate how to find out the version of Chilkat at runtime.Chilkat Delphi ActiveX Downloads
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;
...
procedure TForm1.Button1Click(Sender: TObject);
var
sftp: TChilkatSFtp;
chilkatVersion: WideString;
json: TChilkatJsonObject;
begin
// Most Chilkat classes include a Version property.
// To find the version of Chilkat, such as "9.5.0.94",
// instantiate the object and examine the Version property.
// For example:
sftp := TChilkatSFtp.Create(Self);
chilkatVersion := sftp.Version;
Memo1.Lines.Add(chilkatVersion);
// Most other Chilkat classes also have the Version property
// For example:
json := TChilkatJsonObject.Create(Self);
Memo1.Lines.Add(json.Version);
end;