hangover


I am trying to change the SaveSentMessageFolder property of an Outlook mail item through VFP so that when my application sends an email it is saved in a specific folder (not the default 'Sent Items' folder).

However when I try to change it (e.g. loMailItem.SaveSentMessageFolder = loFolder), instead of changing the folder to which the sent item is saved, it renames the 'Sent Items' folder.

The problem is documented here where the solution given is to use the Set statement. But no such statement exists in VFP. Is there an alternative way of doing this





Re: VFP equivalent of VB Set statement

CetinBasoz


I don't know really. I'd try:

loMailItem.SaveSentMessageFolder.object = loFolder






Re: VFP equivalent of VB Set statement

hangover

Thanks Cetin, but no dice I'm afraid. The SaveSentMessageFolder property does not have an Object property.







Re: VFP equivalent of VB Set statement


Re: VFP equivalent of VB Set statement

hangover

Afraid not. That just replicates what I'm already doing, i.e. it translates the VB code ...

Set myResponse.SaveSentMessageFolder = mpf

... into the VFP code ...

myResponse.SaveSentMessageFolder = mpf