Xbase++ Requires Chilkat v11.0.0+
Xbase++
Transition from Imap.GetAllUids to Imap.QueryMbx
Provides instructions for replacing deprecated GetAllUids method calls with QueryMbx.Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oImap
LOCAL oMsgSetObj
LOCAL oMset
nSuccess := 0
oImap := CreateObject("Chilkat.Imap")
// ...
// ...
// ------------------------------------------------------------------------
// The GetAllUids method is deprecated:
oMsgSetObj := oImap:GetAllUids()
IF (oImap:LastMethodSuccess == 0)
? oImap:LastErrorText
oImap:destroy()
RETURN
ENDIF
// ...
// ...
oMsgSetObj:destroy()
// ------------------------------------------------------------------------
// Do the equivalent using QueryMbx.
// Your application creates a new, empty MessageSet object which is passed
// in the last argument and filled upon success.
oMset := CreateObject("Chilkat.MessageSet")
nSuccess := oImap:QueryMbx("ALL", 1, oMset)
IF (nSuccess == 0)
? oImap:LastErrorText
oImap:destroy()
oMset:destroy()
RETURN
ENDIF
oImap:destroy()
oMset:destroy()