(Go) 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.
mailman := MailMan_Ref.html">chilkat.NewMailMan()
// ...
// ...
// ------------------------------------------------------------------------
// The GetUidls method is deprecated:
sa := mailman.GetUidls()
if mailman.LastMethodSuccess() == false {
fmt.Println(mailman.LastErrorText())
mailman.DisposeMailMan()
return
}
// ...
// ...
sa.DisposeStringArray()
// ------------------------------------------------------------------------
// Do the equivalent using FetchUidls.
// Your application creates a new, empty StringTable_Ref.html">StringTable object which is passed
// in the last argument and filled upon success.
st := StringTable_Ref.html">chilkat.NewStringTable()
success := mailman.FetchUidls(st)
if success == false {
fmt.Println(mailman.LastErrorText())
mailman.DisposeMailMan()
st.DisposeStringTable()
return
}
mailman.DisposeMailMan()
st.DisposeStringTable()
|