1.3 Entries Collection

Used to obtain information about entries in the Bindery database.

1.3.1 HasMoreElements method

Determines whether the collection has more Entry objects.

Syntax

 object.HasMoreElements()
 

Parameters

None.

Return Values

Boolean. Returns TRUE if the collection has more entry objects. Otherwise, FALSE.

Example

This example returns TRUE if the collection has more Entry 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) 
 wend
 

1.3.2 Next method

Returns the next Entry object in the collection.

Syntax

 object.Next()
 

Parameters

None.

Return Values

Entry object in the collection, or NULL, if no more Entry objects exist.

Example

This example returns the next Entry object in the collection, or NULL, if there are no more Entry objects in the collection.

 ’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) 
 wend
 

1.3.3 Reset method

Resets the Entries collection.

Syntax

 object.Reset()
 

Parameters

None.

Return Values

None.

Remarks

Use this method to start or reset the iteration.

Example

This example resets the collection.

 ’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) 
 wend