MapWinGIS:ErrorMsg

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

ErrorMsg

Retrieves the error message associated with the specified error code.


VB.NET Usage

ReadOnly Property get_ErrorMsg(ErrorCode As Integer) As String

            Parameters

ErrorCode

The error code for which the error message is required.
ReturnValue The error message description for the specified error code.

Sample Code

    Private Sub ErrorMessage()
        Dim errorCode As Integer
        'Set the error code
        errorCode = 10
        'Display message box giving error message for error code
        MsgBox(Map1.get_ErrorMsg(errorCode))
    End Sub
  

VB 6 Usage

ReadOnly Property ErrorMsg(ErroCode As Long) As String
            Parameters

ErrorCode

The error code for which the error message is required.
ReturnValue The error message for the specified error code.

Sample Code

    Private Sub SaveSF(ByRef sf As MapWinGIS.Shapefile, sFilename As String)
      'Try to save a shapefile
      If Not sf.SaveAs(sFilename) Then
          MsgBox "Error saving shapefile:" & sf.ErrorMsg(sf.LastErrorCode)
      End If
    End Sub

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

This page has been accessed 3,283 times. This page was last modified on 19 September 2008, at 19:28.