DataSources Collection

The DataSources collection contains all data sources in a model.

Discussion

Use this collection to add, select or remove a data source. This collection can include the following objects:

  • CrossTabDataSource
  • DataSource
  • DbDataSource.
  • FlatFileDataSource
  • IqdDataSource

To return this collection, use the DataSources property.

These tables list related methods and properties.

Method

Description

Add Method ()

Adds an object to a collection that contains objects of more than one type.

Item Method

Selects a specific data source in the collection.

Remove Method

Removes a specific data source from the collection.

Property

Description

Application Property

Returns the Transformer Application object.

Count Property

Returns the number of DataSource objects in the collection.

Parent Property

Returns the parent object.

Examples

objDataSource = objModel.DataSources.Add(xtrObjectType.trFlatFileDataSource)