IPrxTableSources.Item

Syntax

Item(Index: Integer): IPrxTableSource;

Parameters

Index - index of a data source.

Description

The Item property determines parameters of a data source by the specified index.

Example

Sub Main;

Var

MB: IMetabase;

MObj : IMetabaseObject;

Report : IPrxReport;

TSources : IPrxTableSources;

TSource : IPrxTableSource;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Report").Edit;

Report := MObj As IPrxReport;

TSources := Report.TableSources;

TSource := TSources.Item(0);

TSource.Name := "TableSource";

MObj.Save;

End Sub Main;

After executing the example the name of the selected relational data source is changed. Report - identifier of a regular report.

See also:

IPrxTableSources