(AutoIt) Transition from MailMan.LastJsonData to MailMan.GetLastJsonData
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData. Note: This example requires Chilkat v11.0.0 or greater.
$oMailman = ObjCreate("Chilkat.MailMan")
; ...
; ...
; ------------------------------------------------------------------------
; The LastJsonData method is deprecated:
Local $oJsonObj = $oMailman.LastJsonData()
If ($oMailman.LastMethodSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using GetLastJsonData.
; Your application creates a new, empty JsonObject object which is passed
; in the last argument.
$oJsonOut = ObjCreate("Chilkat.JsonObject")
$oMailman.GetLastJsonData $oJsonOut
|