Windows Messaging and Outlook97, but NOT with Outlook 2000. The program stops with a dialog box as follows:
>>>
>>>Program Error
>>>OLE | Dispatch exception code 0 from MAPIMessages:
>>>Attachment not found. - Cancel - Ignore - Help
>>>
>>>I have tried various ways to fix this problem, including using AttachmentPosition, AttachmentIndex, and using AttachmentPathname very spcifically by including SYS(5) + CURDIR() + filename.
>>>
>>
>>This is a SWAG, but I've had considerable trouble with SYS(5) and UNCs; a more reliable reference can be obtained from:
>>
>>FULLPATH(CURDIR()+"
file name")
>>
FULLPATH("file name") would work just as well and is shorter to type. As a matter of fact, as long as the file is on the foxpro path, just referencing the name of the file will get you the full qualified path to the file.
Cy Welch
Senior Programmer/Analyst
MetSYS Inc