DuplicateFolder method
Creates a copy of an HMI tag folder. This also includes all its subfolders and tags. Returns a Folder object that represents the newly-created folder.
Syntax
Set
Folder
= TagDB
.DuplicateFolder
(SourceName
, NewName
)where
Folder
is the name of a Folder object or an expression that evaluates to a Folder object.TagDB
is the global variable TagDB
. You can also use a variable you have defined as a TagDB object or an expression that evaluates to a TagDB object.
TIP:
If you are not using
FactoryTalk View SE
's VBA, the global variables will not be automatically created and you will have to define your own object variables.folder1\folder2
.NewName
is the fully qualified name of the new folder, that is, the path and folder name such as newFolder1\newFolder2
.Remarks
- When operating a large amount of data, we recommend that you use the block mode to improve the performance.
- Avoid opening the Tags editor before the operation finishes. Otherwise, errors may occur.
Provide Feedback