Function EN Version 10.10

@SetAttachmentHostType

Attachments Note

Syntax

@SetAttachmentHostType(NOTEHANDLE1;FNATTACHMENTNR2;FNHOSTTYPE3);

Description

Sets the HostType FN FNHOSTTYPE3 for the attachment at position FN FNATTACHMENTNR2 in the document identified by NOTEHANDLE NOTEHANDLE1.
The positions are the same as those returned by @AttachmentInfo.

On success, the function returns TRUE.

HostType:   Hex   Dec
HOST_MSDOS   0000   00000
HOST_OLE   0100   00256
HOST_MAC   0200   00512
HOST_UNKNOWN   0300   00768

Example @SetAttachmentHostType(NOTEHANDLE1;FNATTACHMENTNR2;FNHOSTTYPE3);

FNATTACHMENTNR2:=1;
FNHOSTTYPE3:=768;
Ret:=@SetAttachmentHostType(NOTEHANDLE1;FNATTACHMENTNR2;FNHOSTTYPE3);

If a document NOTEHANDLE1 is open and has attachments, the HostType for the first attachment is set to FNHOSTTYPE3.

Note : This text was machine-translated and may contain inaccuracies.