VistaDB 6
VistaDB.Provider Namespace / VistaDBDataAdapter Class / Fill Method / Fill(DataSet,Int32,Int32,String) Method
A System.Data.DataSet to fill with records and, if necessary, schema.
The zero-based record number to start with.
The maximum number of records to retrieve.
The name of the source table to use for table mapping.


In This Topic
    Fill(DataSet,Int32,Int32,String) Method
    In This Topic
    Adds or refreshes rows in a specified range in the System.Data.DataSet to match those in the data source using the System.Data.DataSet and System.Data.DataTable names.
    Syntax
    'Declaration
     
    
    Public Overloads Function Fill( _
       ByVal dataSet As System.Data.DataSet, _
       ByVal startRecord As System.Integer, _
       ByVal maxRecords As System.Integer, _
       ByVal srcTable As System.String _
    ) As System.Integer
    'Usage
     
    
    Dim instance As VistaDBDataAdapter
    Dim dataSet As System.Data.DataSet
    Dim startRecord As System.Integer
    Dim maxRecords As System.Integer
    Dim srcTable As System.String
    Dim value As System.Integer
     
    value = instance.Fill(dataSet, startRecord, maxRecords, srcTable)
    public System.int Fill( 
       System.Data.DataSet dataSet,
       System.int startRecord,
       System.int maxRecords,
       System.string srcTable
    )

    Parameters

    dataSet
    A System.Data.DataSet to fill with records and, if necessary, schema.
    startRecord
    The zero-based record number to start with.
    maxRecords
    The maximum number of records to retrieve.
    srcTable
    The name of the source table to use for table mapping.

    Return Value

    The number of rows successfully added to or refreshed in the System.Data.DataSet. This does not include rows affected by statements that do not return rows.
    Exceptions
    ExceptionDescription
    The System.Data.DataSet is invalid.
    The source table is invalid. -or- The connection is invalid.
    The connection could not be found.
    The startRecord parameter is less than 0. -or- The maxRecords parameter is less than 0.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also