Visual FoxPro
Visual FoxPro
Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.Chilkat Visual FoxPro Downloads
LOCAL lnSuccess
LOCAL loCrypt2
LOCAL loJsonObj
LOCAL loJsonOut
lnSuccess = 0
loCrypt2 = CreateObject('Chilkat.Crypt2')
* ...
* ...
* ------------------------------------------------------------------------
* The LastJsonData method is deprecated:
loJsonObj = loCrypt2.LastJsonData()
IF (loCrypt2.LastMethodSuccess = 0) THEN
? loCrypt2.LastErrorText
RELEASE loCrypt2
CANCEL
ENDIF
* ...
* ...
RELEASE loJsonObj
* ------------------------------------------------------------------------
* Do the equivalent using GetLastJsonData.
* Your application creates a new, empty JsonObject object which is passed
* in the last argument and filled upon success.
loJsonOut = CreateObject('Chilkat.JsonObject')
loCrypt2.GetLastJsonData(loJsonOut)
IF (lnSuccess = 0) THEN
? loCrypt2.LastErrorText
RELEASE loCrypt2
RELEASE loJsonOut
CANCEL
ENDIF
RELEASE loCrypt2
RELEASE loJsonOut