Function EN Version 4.50

@CompactDB

Database

Syntax

@CompactDB(NOTESPATH1;FNOPTIONS);

Description

The DB with the NOTESPATH NOTESPATH1 is compacted.

FNOPTIONS:
BIT   DEC   HEX   BEDEUTUNG

01   00001   0001   
02   00002   0002   
03   00004   0004   
04   00008   0008   
05   00016   0010
06   00032   0020   
07   00064   0040   
08   00128   0080   This flag must be set in order to compact a MAIL.BOX database!!!
09   00265   0100   
10   00512   0200   
11   01024   0400   
12   02048   0800   
13   04096   1000   
14   08192   2000   
15   16384   4000   
16   32768   8000   

Normally, FN FNOPTIONS 0 (NULL) must be specified.

Returnvalue:
On success, a FLOATLIST with two elements is returned.
The first element returns the size of the DB before compacting.
The second element returns the size of the DB after compacting.
In case of an error, @ERROR is returned.

Example: @CompactDB(NOTESPATH1;FNOPTIONS)

NOTESPATH1:="TEST.NSF";
FNOPTIONS:=0;
RET:=@OpenDB(NOTESPATH1;FNOPTIONS);
@LogReport(RET);

The database "TEST.NSF" is, without options (FNOPTIONS=0), kompaktiert.
The return value is then RET ausgegeben.

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