Skip to content

AttachmentFileName - cMapiHandler

Returns the N-th attachment filename

Type: Function
Return Data Type: String

Parameters

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

Syntax

Function AttachmentFileName Integer iAttachment Returns String

Call Example

Get AttachmentFileName iAttachment to StringVariable

Description

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

Example

Get piMessageFileCount Of oMapiSession To iAttachments
For iCounter From 1 To iAttachments
   Get AttachmentFileName Of oMapiSession iCounter To sAttachFile

Return Value

Filename of the N-th attachment