@DocLength
Syntax
@DocLength(NOTEHANDLE1);
@DocLength(NOTEHANDLE1;EXCLUDE2);
Description
Returns the size of the document with the NOTEHANDLE NOTEHANDLE1 (object size of the document without attachments).
If @DocLength is used in the second format, the lengths of the contents of the fields (and the attachments) are added and the result is returned in bytes. All variables whose initial letter occurs in TEXT EXCLUDE2 (case-sensitive) are not included.
Example: @DocLength(NOTEHANDLE1)
DBHANDLE:=@OpenDB("TEST.NSF");
VIEWHANDLE:=@OpenView(DBHANDLE;"TEST VIEW");
VIEWPOSITION:=1:1:1:0:0:0:0:0:0:0;
NOTEHANDLE1:=@OpenNoteByPosition(DBHANDLE;VIEWHANDLE;VIEWPOSITION;NOTEHANDLE1);
@LogReport(@DocLength(NOTEHANDLE1));
NOTEHANDLE1:=@CloseNote(NOTEHANDLE1;0);
VIEWHANDLE:=@CloseView(VIEWHANDLE);
DBHANDLE:=@CloseDB(DBHANDLE);
A database is opened, a document is searched for, its complete length is output, and finally the database is closed again.
Example: @DocLength(NOTEHANDLE1;EXCLUDE2) as of version 1.93
DBHANDLE:=@OpenDB("TEST.NSF");
VIEWHANDLE:=@OpenView(DBHANDLE;"TEST VIEW");
VIEWPOSITION:=1:1:1:0:0:0:0:0:0:0;
NOTEHANDLE1:=@OpenNoteByPosition(DBHANDLE;VIEWHANDLE;VIEWPOSITION;NOTEHANDLE1);
@LogReport(@DocLength(NOTEHANDLE1;"FGH"));
NOTEHANDLE1:=@CloseNote(NOTEHANDLE1;0);
VIEWHANDLE:=@CloseView(VIEWHANDLE);
DBHANDLE:=@CloseDB(DBHANDLE);
A database is opened, a document is searched for, its length (excluding the fields with the initial letters "F", "G", and "H") is output, and finally the database is closed again.
Note : This text was machine-translated and may contain inaccuracies.
