MapWinGIS:Table EditCellValue

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

EditCellValue

Sets the value of the cell. Note: The table must be set to allow editing before a cell's value may be edited.
See also StartEditingTable


VB.NET Usage

Function EditCellValue(FieldIndex As Integer, RowIndex As Integer, NewVal As Object) As Boolean

            Parameters

FieldIndex

The field index of the cell to be edited.
RowIndex The row index of the cell to be edited.
NewVal The new value to be used to set the specified cell's value.
ReturnValue A boolean value representing the success or failure of setting the value of the specified cell in the table.

Sample Code

    Private Sub TableEditCellValue()
        Dim table As New MapWinGIS.Table()
        Dim success As Boolean
        'Open a table
        success = table.Open("C:\test.dbf")
        'Start editing the table
        success = table.StartEditingTable()
        'Set the value of field 0, row 0 to 100
        success = table.EditCellValue(0, 0, 100)
    End Sub
  

VB 6 Usage
Function EditCellValue(FieldIndex As Long, RowIndex As Long, NewVal As Object) As Boolean
            Parameters

FieldIndex

The field index of the cell to be edited.
RowIndex The row index of the cell to be edited.
NewVal The new value to be used to set the specified cell's value.
ReturnValue A boolean value representing the success or failure of setting the value of the specified cell in the table.

Sample Code

    Private Sub TableEditCellValue()
        Dim table As New MapWinGIS.table
        Dim success As Boolean
        'Open a table
        success = table.Open("C:\test.dbf")
        'Start editing the table
        success = table.StartEditingTable()
        'Set the value of field 0, row 0 to 100
        success = table.EditCellValue(0, 0, 100)
    End Sub

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

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