Function EN Version 4.50

@CopyFolder

Database Folder

Syntax

@CopyFolder(DBHANDLE1;VIEWHANDLEFOLDER2;NEWFOLDERNAME3);

Description

This @function copies, in the DB with the DBHANDLE DBHANDLE1, the folder with the VIEWHANDLE VIEWHANDLEFOLDER2 as a folder named TEXT NEWFOLDERNAME3.
(All documents, subfolders, and the design are copied.)
Returnvalue:
If the @function was executed successfully, TRUE is returned; otherwise @ERROR.

Example: @CopyFolder(DBHANDLE1;VIEWHANDLEFOLDER2;NEWFOLDERNAME3);

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

The folder named "TEST Folder" in the DB named "TEST.NSF" is copied.
The copy receives the name "New Folder".

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