NewList Method
Description
Creates a list of objects according to the specified filter.Creates a list of objects according to the specified filter.
Syntax
Visual Basic
Public Function NewList( _
   ByVal Filter As String _
) As List
Parameters
Filter
A TDFilter.Text defining the criteria for filtering items in the factory. If an empty string is passed, the returned list contains all the child items of the current factory object.A TDFilter.Text defining the criteria for filtering items in the factory. If an empty string is passed, the returned list contains all the child items of the current factory object.
Return Type

A reference to the list created. The list index is 1-based.

A reference to the list created. The list index is 1-based.

Remarks
In Quality Center version 9.2, if no sub-type is specified in the filter, only attachments with an empty sub-type are returned. This behavior will be changed in later versions. Sub-types are specified with the tagTDAPI_ATTACH_SUBTYPE Enumeration.Lists created with factory NewList calls are cached for several seconds. If your application is expected to change the contents of the list, instruct the server to refresh the data by passing [force_refresh] as the leading characters of the filter.
See Also