(Visual Basic 6.0) 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.
Dim mailman As New ChilkatMailMan
' ...
' ...
' ------------------------------------------------------------------------
' The GetUidls method is deprecated:
Dim sa As CkStringArray
Set sa = mailman.GetUidls()
If (mailman.LastMethodSuccess = 0) Then
Debug.Print mailman.LastErrorText
Exit Sub
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using FetchUidls.
' Your application creates a new, empty StringTable object which is passed
' in the last argument and filled upon success.
Dim st As New ChilkatStringTable
Dim success As Long
success = mailman.FetchUidls(st)
If (success = 0) Then
Debug.Print mailman.LastErrorText
Exit Sub
End If
|