Hello Paul
Yes that looks just what I was after.
I have marked the thread as solved. Thanks:)
Now if I can just find someone to answer my thread regarding filtering the SenderName using Nigel Coates Outlook class I will be in business on the function I am trying to write:)
I have never had to wait 2 days for a response before:( I wonder if there is a conference on somewhere.
>Is this useful?
>
>
>LOCAL lo, loSpace, loInbox
>lo = CREATEOBJECT( "Outlook.Application" )
>loSpace = lo.GetNameSpace( "MAPI" )
>loInbox = loSpace.GetDefaultFolder( 6 )
>loDeletedItems = loSpace.GetDefaultFolder( 3 )
>FOR EACH loMsg IN loInbox.Items
>
> *** put any conditions in here
>
> loMsg.Move( loDeletedItems )
>ENDFOR
>
>
>Regards
>
>Paul
>
>>I am writing an application that passes DBF files backwards and forwards as attachments in Outlook mail.
>>
>>I am using Nigel Coates Outlook class for this.
>>
>>After my app has succesfully imported the the attached DBF(s) I want to delete the email that they arrived in.
>>
>>I presume this is handled by some sort of move command, to move the mail the deleted folder in Outlook.
>>
>>Does anyone know how to do this.
>>
>>Many Thanks.