Sample code for 30+ languages & platforms
Visual FoxPro

Transition from MailMan.LastJsonData to MailMan.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL loMailman
LOCAL loJsonObj
LOCAL loJsonOut

loMailman = CreateObject('Chilkat.MailMan')

* ...
* ...

* ------------------------------------------------------------------------
* The LastJsonData method is deprecated:

loJsonObj = loMailman.LastJsonData()
IF (loMailman.LastMethodSuccess = 0) THEN
    ? loMailman.LastErrorText
    RELEASE loMailman
    CANCEL
ENDIF

* ...
* ...

RELEASE loJsonObj

* ------------------------------------------------------------------------
* Do the equivalent using GetLastJsonData.
* Your application creates a new, empty JsonObject object which is passed 
* in the last argument.

loJsonOut = CreateObject('Chilkat.JsonObject')
loMailman.GetLastJsonData(loJsonOut)

RELEASE loMailman
RELEASE loJsonOut