LibraryFirstObject
- Last UpdatedJul 13, 2023
- 1 minute read
Returns the name of the first library object. Can be used with LibraryNextObject to iterate through library objects.
Syntax
LibraryFirstObject(Project,Library,Type,Object)
Project:
The name of the project that contains the object library you would like to browse.
Library:
Specifies the library that contains the objects you would like to browse.
Type:
Specifies the type of the object you want to browse.
1 = Genie
2 = Super Genie
3 = Template
Object:
Returns the name of the first object as a string.
Return Value
The name of the first object as string values.
Note: For details on handling return and error values, see Error Handling.
Related Functions
LibraryNextObject, LibraryObjectPlace, LibraryObjectFirstProperty, LibraryObjectNextProperty, LibraryObjectFirstPropertyEx, LibraryObjectPutProperty,
Example
On Error Resume Next
Err.Clear
GraphicsBuilder.LibraryFirstObject ProjectName,LibraryName,1,ObjectName
While Err.Number = 0
Debug.Print ObjectName
GraphicsBuilder.LibraryNextObject ObjectName
Wend