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