Sample code for 30+ languages & platforms
Visual Basic 6.0

Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

Dim crypt2 As New ChilkatCrypt2

' ...
' ...

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

Dim jsonObj As ChilkatJsonObject
Set jsonObj = crypt2.LastJsonData()
If (crypt2.LastMethodSuccess = 0) Then
    Debug.Print 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 ChilkatJsonObject
crypt2.GetLastJsonData jsonOut
If (success = 0) Then
    Debug.Print crypt2.LastErrorText
    Exit Sub
End If