IDmDataSource.CopyFrom

Fore Syntax

CopyFrom(InputSource: IDmDataSource);

Fore.NET Syntax

CopyFrom(InputSource: Prognoz.Platform.Interop.Ms.IDmDataSource);

Parameters

InputSource. The copied data source.

Description

The CopyFrom method copies the specified data source.

Fore Example

The example is a function with the Source input parameter. This parameter is a regular report, which is a data source for data mining.

Add a link to the Ms system assembly.

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

As a result, the copy of the specified data source is returned by the function.

Fore.NET Example

The example is a function with the Source input parameter. This parameter is a regular report, which is a data source for data mining.

Imports Prognoz.Platform.Interop.Ms;

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

As a result, the copy of the specified data source is returned by the function.

See also:

IDmDataSource