MapWinGIS:ESRIGridManager IsESRIGrid
From MapWindow GIS
IsESRIGrid
Gets whether or not the specified file is an ESRI grid.
VB.NET Usage
Function IsESRIGrid(Filename As String) As Boolean
Parameters
|
Filename | The filename of the grid to be checked. |
| ReturnValue | A boolean value representing whether or not the specified file is an ESRI grid. |
Sample Code
Private Sub IsESRIGrid()
Dim ESRIgridmanager As New MapWinGIS.ESRIGridManager()
Dim filename As String
'Set the file to be checked
filename = "C:\test.grd"
'Check if the specified file is an ESRI grid
If ESRIgridmanager.IsESRIGrid(filename) Then
'If the specified file is an ESRI grid, display a message to the user
MsgBox("The file " + filename + " is an ESRI grid.")
End If
End Sub
VB 6 Usage
Function IsESRIGrid(Filename As String) As Boolean
Parameters
|
Filename | The filename of the grid to be checked. |
| ReturnValue | A boolean value representing whether or not the specified file is an ESRI grid. |
Sample Code
Private Sub IsESRIGrid()
Dim ESRIgridmanager As New MapWinGIS.ESRIgridmanager
Dim filename As String
'Set the file to be checked
filename = "C:\test.grd"
'Check if the specified file is an ESRI grid
If ESRIgridmanager.IsESRIGrid(filename) Then
'If the specified file is an ESRI grid, display a message to the user
MsgBox ("The file " + filename + " is an ESRI grid.")
End If
End Sub
















