MapWinGIS:Grid InRam
From MapWindow GIS
InRam
Returns whether the grid is loaded in to RAM memory or not.
VB.NET Usage
ReadOnly Property InRam() As Boolean
Parameters
|
ReturnValue | A boolean value representing whether the grid is loaded into RAM or not. |
Sample Code
Private Sub InRam()
Dim grid As New MapWinGIS.Grid()
'Open a grid from disk
grid.Open("C:\grid.asc")
'Check if the grid is loaded into RAM
If grid.InRam Then
MsgBox("The grid is loaded into RAM.")
Else
MsgBox("The grid is not loaded into RAM.")
End If
'Close the grid
grid.Close()
End Sub
VB 6 Usage
ReadOnly Property InRam() As Boolean
Parameters
|
ReturnValue | A boolean value representing whether the grid is loaded into RAM or not. |
Sample Code
Private Sub InRam()
Dim grid As New MapWinGIS.grid
'Open a grid from disk
grid.Open ("C:\grid.asc")
'Check if the grid is loaded into RAM
If grid.InRam Then
MsgBox ("The grid is loaded into RAM.")
Else
MsgBox ("The grid is not loaded into RAM.")
End If
'Close the grid
grid.Close
End Sub
















