Navigation: Scripting Reference Manual > Functions & Subroutines > RepositoryCreate

 

RepositoryCreate

 

Contact Us: fredsupport@photonengr.com

 

Description

Creates a Repository for document control.

 

Syntax

success = RepositoryCreate( repname, commnt )

 

Parameters

success (Boolean)

True if operation successful; False otherwise.

 

repname As String

Full path name of Repository. A new directory is created with this name.

 

commnt As String

Text comment saved with Repository entry.

 

Remarks

Creates a Repository for document control. A log file accompanies the Repository.

 

All documents added to the Repository will have the string "__(#)" appended to its file name where # is the revision number.

 

There is only one set of revision numbers per Repository. Revision numbers are incremented by one (1) regardless of file name.

 

Example: Assume two files are to be added to the Repository. If the first file added is "myfred.frd" and the second file added is "yourfred.frd", these files will be listed in the revision history as "myfred__(0).frd" and "yourfred__(1).frd". If the first file is opened and then saved after revision, that file will be saved as "myfred__(2).frd".

 

See Also

RepositoryCopyFileTo

RepositoryMoveFileTo

RepositoryDeleteFile

RepositoryFileToDoc

RepositorySaveFredDocTo

 

 

 

 

 

Copyright © Photon Engineering, LLC