in reply to Re4: : Outlook MailItem Body Question
in thread Outlook MailItem Body Question

I understand that access to the body is implemented as a rw string in VBA.

But the error message issued by perl when the OP attempted to assign to it via Win32::OLE:

Can't modify non-lvalue subroutine call at ...,
suggests fairly strongly that Win32::OLE implements access to the property using a subroutine -- Ie. an accessor/mutator method -- which does make a certain amount of sense.

It may not be correct, but that is the implication of the error message.

Replies are listed 'Best First'.
Re: Re: Re4: : Outlook MailItem Body Question
by maa (Pilgrim) on Jan 07, 2004 at 10:13 UTC

    Agreed... but as I noted elsewhere, the implementation of automation for Outlook97 is Very Shoddy :-) ... I always though it had been added as an afterthought (as the rest of the Office 97 Object Model, except perhaps PowerPoint, was fairly good). Newer versions of Outlook have a better implementation.

    I used to hate havin to write Outlook Forms in VBScript and having to Chop/Change when I was controlling Excel/Access or whatever from them!