Creates a new library. Fails, if project is read-only or not valid.
Syntax
PageNewLibrary(Project, Library, LibraryType)
Project:
The name of the project where the library is created.
Library:
The new library name (or style for templates).
LibraryType:
Type:
Return Value
0 (zero) if successful, otherwise an error is returned.
Note: For details on handling return and error values, see Error Handling.
Related Functions
PageOpen, PageSave, PageSaveAs, PageClose
Example
' Creates a new symbol library
GraphicsBuilder.PageNewLibrary "Example", "newlibrary", 0
' Creates a new Genie library
GraphicsBuilder.PageNewLibrary "demo", "newlibrary", 1
' Creates a new Supergenie library
GraphicsBuilder.PageNewLibrary "Example", "newlibrary", 2
' Creates a new template style
GraphicsBuilder.PageNewLibrary "Example", "newstyle", 3