MapWinGIS:Shapefile Open
From MapWindow GIS
Open
Opens the specified shapefile.
VB.NET Usage
Function Open(ShapefileName As String, Optional cBack As MapWinGIS.ICallback) As Boolean
Parameters
|
ShapefileName | The filename of the shapefile to be opened. |
| cBack | Optional. The ICallback object which will recieve the progress and error messages while the shapefile is being opened. |
| ReturnValue | A boolean value representing the success or failure of opening the shapefile. |
Sample Code
Private Sub OpenShapefile()
Dim sf As New MapWinGIS.Shapefile()
'Open the shapefile
sf.Open("C:\test.shp")
'Close the shapefile
sf.Close()
End Sub
VB 6 Usage
Function Open(ShapefileName As String, Optional cBack As ICallback) As Boolean
Parameters
|
ShapefileName | The filename of the shapefile to be opened. |
| cBack | Optional. The ICallback object which will recieve the progress and error messages while the shapefile is being opened. |
| ReturnValue | A boolean value representing the success or failure of opening the shapefile. |
Sample Code
Private Sub OpenShapefile()
Dim sf As New MapWinGIS.Shapefile
'Open the shapefile
sf.Open ("C:\test.shp")
'Close the shapefile
sf.Close
End Sub
















