MapWinGIS:Table EditInsertRow

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

EditInsertRow

Inserts a new row into the table. Note: The table must be set to allow editing before a row can be inserted into the table.
See also StartEditingTable


VB.NET Usage

Function EditInsertRow(ByRef RowIndex As Integer) As Boolean

            Parameters

RowIndex

Reference parameter. The desired index to use when inserting the new row into the table. If the desired index is invalid or unavailable, the actual index used to insert the new row will be returned.
ReturnValue A boolean value representing the success or failure of inserting the new row into the table.

Sample Code

    Private Sub TableInsertRow()
        Dim table As New MapWinGIS.Table()
        Dim rowindex As Integer
        Dim success As Boolean
        'Set the desired index for the new row in the table
        rowindex = 2
        'Open a table
        success = table.Open("C:\test.dbf")
        'Start editing the table
        success = table.StartEditingTable()
        'Insert a row into the table at index 2
        success = table.EditInsertRow(rowindex)
    End Sub
  

VB 6 Usage
Function EditInsertRow(ByRef RowIndex As Long) As Boolean
            Parameters

RowIndex

Reference parameter. The desired index to use when inserting the new row into the table. If the desired index is invalid or unavailable, the actual index used to insert the new row will be returned.
ReturnValue A boolean value representing the success or failure of inserting the new row into the table.

Sample Code

    Private Sub TableInsertRow()
        Dim table As New MapWinGIS.table
        Dim rowindex As Long
        Dim success As Boolean
        'Set the desired index for the new row in the table
        rowindex = 2
        'Open a table
        success = table.Open("C:\test.dbf")
        'Start editing the table
        success = table.StartEditingTable()
        'Insert a row into the table at index 2
        success = table.EditInsertRow(rowindex)
    End Sub

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Table_EditInsertRow"

This page has been accessed 1,456 times. This page was last modified on 9 November 2005, at 17:45.