MapWinGIS:Shapefile EditClear
From MapWindow GIS
EditClear
Clears all shapes and attribute data from the shapefile. Note: Both the shapefile and attribute table must be in editing mode for this function to succeed..
VB.NET Usage
Function EditClear() As Boolean
Parameters
|
ReturnValue | A boolean value representing the success or failure of clearing all shapes and attribute data. |
Sample Code
Private Sub EditClear()
Dim sf As New MapWinGIS.Shapefile()
'Switch the shapefile into editing mode
sf.StartEditingShapes()
'Switch the shapefile attribute table into editing mode
sf.StartEditingTable()
'Clear all shapes and attribute data in the shapefile
sf.EditClear()
End Sub
VB 6 Usage
Function EditClear() As Boolean
Parameters
|
ReturnValue | A boolean value representing the success or failure of clearing all shapes and attribute data. |
Sample Code
Private Sub EditClear()
Dim sf As New MapWinGIS.Shapefile
'Switch the shapefile into editing mode
sf.StartEditingShapes
'Switch the shapefile attribute table into editing mode
sf.StartEditingTable
'Clear all shapes and attribute data in the shapefile
sf.EditClear
End Sub
















