MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGIS:ErrorMsg

From MapWindow GIS

Jump to: navigation, search

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://www.mapwindow.org/wiki/index.php/MapWinGIS:ErrorMsg"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: December 03 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links