IDmDataSource.CopyFrom

Syntax

CopyFrom(InputSource: IDmDataSource);

Parameters

InputSource. The copied data source.

Description

The CopyFrom method copies the specified data source.

Example

Executing the example requires that the repository contains a regular report that is a data source for data mining.

Add a link to the Ms system assembly.

The example is a function with the Source input parameter, which is a regular report.

Function CopyDS(Source: IDmReportDataSource): IDmReportDataSource;
Var
    ds: IDmReportDataSource;
Begin
    ds := (New ReportDataSource.Create) As IDmReportDataSource;
    ds.CopyFrom(Source);
    Return ds;
End Function CopyDS;

After executing the example the function will return the copy of the specified data source.

See also:

IDmDataSource