MapWinGIS:Table EditCellValue
From MapWindow GIS
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
















