Phil, you are using the Remove method of MessageList. Since MessageList is only a snapshot of the messages in the
message DB, the messages won't get deleted from the DB. You can use the Item method of MessageList to get individual
messages and subsequently call Delete on the Message object. Hope this solves your problem.


-----Original Message-----
[]On Behalf Of
Sent: Wednesday, October 06, 2004 3:40 AM
Subject: Re: Deleting Selected Messages

What do you mean when you say 'isn't working'? Are you receiving a
specific error?



In article <v3KWc.4039$>, says...
> How do delete selected messages from ClientState.SelectedMessage?
> Below is some sample code which isn't working
> Set SelMsgs = g_C3POManager.ClientState.SelectedMessages
> do while SelMsgs.Count<>0
> ...processing
> SelMsgs.Remove 1
> wend
> Thanks
> Phil.