Navigation:  DAO Collection Classes > DaoCollection Class >

DaoCollection:AsArray() Method

Previous pageReturn to chapter overviewNext page

Purpose

Returns collection in the form of an VO array

 

Returns

Array of objects that make up the collection

 

Description

This method returns the collection in the form of a VO array, so it is much easier to handle in VO. If you need all the objects this is much faster than using a loop and the Item access of the collection. if you don't need to save all the objects, it us faster to use the ForEach() Method

 

Class

DaoCollection

 

See Also

DaoCollection:ForEachEvaluate a CodeBlock for every object in the collection
DaoCollection:ItemAccess an individual object in the collection
DaoDynaCollection:ItemAccess an individual object in the collection