Function EN Version 2.00

@AttachmentInfo

Attachments Note

Syntax

@AttachmentInfo(NOTEHANDLE1;OPTIONS2);

Description

Returns the requested information (OPTIONS2) about the attached files of the document (NOTEHANDLE1) back.
A list is returned whose data type corresponds to the requested information.

The positions are always the same, i.e. if one piece of information (List1) is queried first and then another (List2), the information at position 1 of List1 belongs to the same attachment as position 1 of List2.

Example:

lis1 (OPTIONS2="FN"):
"File1.XXX":"File2.XXX":"File3.XXX".

lis2 (OPTIONS2="FS")
1000:2000:23

lis3 (OPTIONS2="FC")
[30.10.93 10:23:30]:[20.10.92 01:02:03]:[20.10.92 01:02:04]

Thus, the first attachment (position 1) was created on [30.10.93 10:23:30], is 1000 bytes in size, and has the file name "File1.XXX".
Thus, the second attachment (position 2) was created on [20.10.92 01:02:03], is 2000 bytes in size, and has the file name "File2.XXX".
Thus, the third attachment (position 3) was created on [20.10.92 01:02:04], is 23 bytes in size, and has the file name "File3.XXX".

OPTIONS2:

Info-Kuerzel   ReturndataTyp   Info-Art

ID   FLOAT   BlockIDItem
OT   NUMBER   ObjectType
OI   FLOAT   ObjectID
NL   NUMBER   FilenameLength
HT   NUMBER   HostType
CT   NUMBER   CompressionType
FA   NUMBER   FileAttributes
FL   NUMBER   Flags
FS   FLOAT   FileSize
FC   TD   FileCreated
FM   TD   FileModified
FN   TEXT   Filename

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

CompressionType:   Hex   Dec
COMPRESSION_NONE   0000   00000
COMPRESSION_HUFF   0001   00001

FileAttributes:   Hex   Dec
ATTRIB_READONLY   0001   00001
ATTRIB_PRIVATE   0002   00002

Flags:   Hex   Dec
FILEFLAG_SIGN   0001   00001

Example @AttachmentInfo(NOTEHANDLE1;OPTIONS2);

OPTIONS2:="FC";
TDList:=@AttachmentInfo(NOTEHANDLE1;OPTIONS2);

If a document NOTEHANDLE1 is opened and has attachments, the creation dates of the attached files are returned.
e.g. [30.10.93 10:23:30]:[20.10.92 01:02:03]

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