Responder Developer Guide
MoveTable(DataTable,DataSet,DataSet) Method


DataTable object to move (must not be null)
The source DataSet (must not be null)
The destination DataSet (must not be null)
This function moves a datatable from one dataset to another.
Syntax
'Declaration
 
Public Overloads Shared Sub MoveTable( _
   ByVal dt As DataTable, _
   ByVal dsFrom As DataSet, _
   ByVal dsTo As DataSet _
) 
'Usage
 
Dim dt As DataTable
Dim dsFrom As DataSet
Dim dsTo As DataSet
 
DataSource.MoveTable(dt, dsFrom, dsTo)
public static void MoveTable( 
   DataTable dt,
   DataSet dsFrom,
   DataSet dsTo
)

Parameters

dt
DataTable object to move (must not be null)
dsFrom
The source DataSet (must not be null)
dsTo
The destination DataSet (must not be null)
Remarks
This is easy enough to do, but the datatable can only be added to a dataset if it does not belong to another - so you must remove it from the "from" dataset before adding it to the "to" dataset.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

DataSource Class
DataSource Members
Overload List

 

 


Send Comment