Sample code for 30+ languages & platforms
VB.NET Requires Chilkat v11.0.0+

Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat VB.NET Downloads

VB.NET
Dim success As Boolean = False

Dim crypt2 As New Chilkat.Crypt2

'  ...
'  ...

'  ------------------------------------------------------------------------
'  The LastJsonData method is deprecated:

Dim jsonObj As Chilkat.JsonObject = crypt2.LastJsonData()
If (crypt2.LastMethodSuccess = False) Then
    Debug.WriteLine(crypt2.LastErrorText)
    Exit Sub
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
crypt2.GetLastJsonData(jsonOut)
If (success = False) Then
    Debug.WriteLine(crypt2.LastErrorText)
    Exit Sub
End If