-
Topic
-
Hi,
I have made an applet to archive all messages in the selected folder, but after the applet has run the messages are still visible. Only after pressing the F5 button they disappear.
What is the code to refresh the selected folder and sub-folders?
Below the code i’m currently using, but the last two refresh lines doesn’t seem to workdim oFolder
dim blnRunSub Main(Client, GWEvent)
set oFolder = client.clientstate.selectedfolder
blnRun = False
MainForm.lblInfo.Caption = “Moving all messages to ARCHIVE in folder: “+ oFolder.Nameif (oFolder.ObjType <> fgwMailbox) then
MainForm.ShowModal
‘call ArchiveMessages(oFolder,MainForm.chkSubFolders.Checked)
else
msgbox “Not allowed here.”
end ifoFolder.Refresh
Client.ClientState.CurrentAccount.Refreshset oFolder = nothing
End Sub
- You must be logged in to reply to this topic.