MapWinGIS:Shapefile EditClear

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

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

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

This page has been accessed 1,653 times. This page was last modified on 9 November 2005, at 18:27.