Delphi ActiveX Requires Chilkat v11.0.0+
Delphi ActiveX
Transition from MailMan.LastJsonData to MailMan.GetLastJsonData
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.Chilkat Delphi ActiveX Downloads
var
mailman: TChilkatMailMan;
jsonObj: IChilkatJsonObject;
jsonOut: TChilkatJsonObject;
begin
mailman := TChilkatMailMan.Create(Self);
// ...
// ...
// ------------------------------------------------------------------------
// The LastJsonData method is deprecated:
jsonObj := mailman.LastJsonData();
if (mailman.LastMethodSuccess = 0) then
begin
Memo1.Lines.Add(mailman.LastErrorText);
Exit;
end;
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using GetLastJsonData.
// Your application creates a new, empty JsonObject object which is passed
// in the last argument.
jsonOut := TChilkatJsonObject.Create(Self);
mailman.GetLastJsonData(jsonOut.ControlInterface);