(AutoIt) Transition from MailMan.GetUidls to MailMan.FetchUidls
Provides instructions for replacing deprecated GetUidls method calls with FetchUidls. Note: This example requires Chilkat v11.0.0 or greater.
$oMailman = ObjCreate("Chilkat.MailMan")
; ...
; ...
; ------------------------------------------------------------------------
; The GetUidls method is deprecated:
Local $oSa = $oMailman.GetUidls()
If ($oMailman.LastMethodSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf
; ...
; ...
; ------------------------------------------------------------------------
; Do the equivalent using FetchUidls.
; Your application creates a new, empty StringTable object which is passed
; in the last argument and filled upon success.
$oSt = ObjCreate("Chilkat.StringTable")
Local $bSuccess = $oMailman.FetchUidls($oSt)
If ($bSuccess = False) Then
ConsoleWrite($oMailman.LastErrorText & @CRLF)
Exit
EndIf
|