1.2 Bindery Object

The top-level object of the Bindery UCX component. Used for searching the Bindery database.

1.2.1 Element method

Finds an Entry object which represents a Bindery object.

Syntax

 object.Element(
    ObjName As String)
 

Parameters

ObjName
The name of the object to search.

Return Values

Entry object which represents a Bindery object, or NULL if the specified object Name is not found in the Bindery database.

Example

This example returns an entry object which represents a Bindery object. Returns NULL if the specified object Name is not found in the Bindery database.

 ’Display any one property name of the object Testuser 
 set bindery = CreateObject("ucx:Bindery") 
 set entry=bindery.Element("Testuser") 
 Fields =entry.Fields 
 Fields.Reset()
 property=Fields.Next() 
 Print (property.Name)
 

1.2.2 Search method

Searches the database for a Bindery object collection.

Syntax

 object.Search 
    (Pattern As String, 
    [ObjType As Integer])
 

Parameters

Pattern
The pattern to be used to filter the search result. Can contain wildcard characters.
ObjType
Optional. Type of objects to search. See Object Type Values for possible values.

Return Values

Bindery objects collection.

Remarks

You can use wildcard characters such as an asterisk (*) and a question mark (?) for Pattern searches.

Example

This example returns a collection of Bindery objects.

 ’Display information about all the objects in Bindery 
 set bindery = CreateObject ("ucx:Bindery") 
 set entries=bindery.Search ("*.*") 
 entries.Reset() 
 while (entries.HasMoreElements()) 
 entry=entries.Next() 
 Print (entry.Name) 
 end