MapWinGIS:Grid Save

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

Save

Saves the grid.
See also GridFileType


VB.NET Usage

Function Save(Optional Filename As String, Optional GridFileType As MapWinGIS.GridFileType, Optional cBack As MapWinGIS.ICallback) As Boolean

            Parameters

Filename

Optional. The filename the grid will be saved under. If no filename is specified the filename in the grid's Filename property is used.
GridFileType Optional. The file type to save the grid as. If no type is specified, the type stored in the grid object is used.
cBack Optional. The ICallback object that will receive the progress and error events during the creation of the new grid.
ReturnValue A boolean value representing the success or failure of saving the grid.

Sample Code

    Private Sub SaveGrid()
        Dim grid As New MapWinGIS.Grid()
        'Open a grid from disk
        grid.Open("C:\grid.asc")
        'Save the grid
        grid.Save("C:\grid2.asc")
        'Close the grid
        grid.Close()
    End Sub
  

VB 6 Usage
Function Save(Optional Filename As String, Optional GridFileType As GridFileType, Optional cBack As ICallback) As Boolean
            Parameters

Filename

Optional. The filename the grid will be saved under. If no filename is specified the filename in the grid's Filename property is used.
GridFileType Optional. The file type to save the grid as. If no type is specified, the type stored in the grid object is used.
cBack Optional. The ICallback object that will receive the progress and error events during the creation of the new grid.
ReturnValue A boolean value representing the success or failure of saving the grid.

Sample Code

    Private Sub SaveGrid()
        Dim grid As New MapWinGIS.grid
        'Open a grid from disk
        grid.Open ("C:\grid.asc")
        'Save the grid
        grid.Save ("C:\grid2.asc")
        'Close the grid
        grid.Close
    End Sub

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

This page has been accessed 1,554 times. This page was last modified on 9 November 2005, at 16:33.