PageNewLibrary
- Last UpdatedJul 13, 2023
- 1 minute read
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:
0 = Symbol
1 = Genie
2 = Super Genie
3 = Template
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 Super Genie library
GraphicsBuilder.PageNewLibrary "Example", "newlibrary", 2
.
' Creates a new template style
GraphicsBuilder.PageNewLibrary "Example", "newstyle", 3