Skip to content

AttachmentPathName - cMapiHandler

Returns the N-th attachment pathname

Type: Function
Return Data Type: String

Parameters

Parameter Type Description
iAttachment Integer The N-th attachment of the message

Syntax

Function AttachmentPathName Integer iAttachment Returns String

Call Example

Get AttachmentPathName iAttachment to StringVariable

Description

The AttachmentPathName function returns the N-th attachment pathname. The value of N must be passed via iAttachment.

Example

Get piMessageFileCount Of oMapiSession To iAttachments
For iCounter From 1 To iAttachments
   Get AttachmentPathName Of oMapiSession iCounter To sAttachPath

Return Value

Pathname of the N-th attachment