(Swift) 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.
func chilkatTest() {
let mailman = CkoMailMan()!
// ...
// ...
// ------------------------------------------------------------------------
// The GetUidls method is deprecated:
var sa: CkoStringArray? = mailman.getUidls()
if mailman.lastMethodSuccess == false {
print("\(mailman.lastErrorText!)")
return
}
// ...
// ...
sa = nil
// ------------------------------------------------------------------------
// Do the equivalent using FetchUidls.
// Your application creates a new, empty StringTable object which is passed
// in the last argument and filled upon success.
let st = CkoStringTable()!
var success: Bool = mailman.fetchUidls(st)
if success == false {
print("\(mailman.lastErrorText!)")
return
}
}
|