(Xojo Plugin) 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.
Dim crypt2 As New Chilkat.Crypt2
// ...
// ...
// ------------------------------------------------------------------------
// The LastJsonData method is deprecated:
Dim jsonObj As Chilkat.JsonObject
jsonObj = crypt2.LastJsonData()
If (crypt2.LastMethodSuccess = False) Then
System.DebugLog(crypt2.LastErrorText)
Return
End If
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using GetLastJsonData.
// Your application creates a new, empty JsonObject object which is passed
// in the last argument and filled upon success.
Dim jsonOut As New Chilkat.JsonObject
Dim success As Boolean
success = crypt2.GetLastJsonData(jsonOut)
If (success = False) Then
System.DebugLog(crypt2.LastErrorText)
Return
End If
|