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

Straight from the VBA Outlook documentation:

Body (Property).
Returns or sets the clear-text body of the mail message or post. Read/write String.

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

    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.

      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!