Function EN Version 4.50

@ClearFolder

Database Folder

Syntax

@ClearFolder(DBHANDLE1;VIEWHANDLEFOLDER2);

Description

This @Function removes all documents in the DB with the DBHANDLE DBHANDLE1, from the folder with the VIEWHANDLE VIEWHANDLEFOLDER2.
(The documents are only removed from the folder and not deleted from the DB.)
ReturnWert:
If the @Function was executed successfully, TRUE is returned, otherwise @ERROR.

Example: @ClearFolder(DBHANDLE1;VIEWHANDLEFOLDER2);

DBHANDLE1:=@OpenDB("TEST.NSF");
VIEWHANDLEFOLDER2:=@OpenView(DBHANDLE1;"TEST Folder");
Ret:=@ClearFolder(DBHANDLE1;VIEWHANDLEFOLDER2);
@LogReport(Ret);
VIEWHANDLEFOLDER2:=@CloseView(VIEWHANDLEFOLDER2);
DBHANDLE1:=@CloseDB(DBHANDLE1);

The folder "TEST Folder" in the DB "TEST.NSF" is emptied.

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