CopyFrom(InputSource: IDmDataSource);
CopyFrom(InputSource: Prognoz.Platform.Interop.Ms.IDmDataSource);
InputSource. The copied data source.
The CopyFrom method copies the specified data source.
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.
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: