MapWinGIS:LastErrorCode

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

LastErrorCode

Retrieves the last error generated in the object.


VB.NET Usage

ReadOnlyProperty LastErrorCode() As Integer

            Parameters

ReturnValue

The integer error code for the last error generated in the object.

Sample Code

    Private Sub LastErrorCode()
        Dim errorCode As Integer
        'Get the last error in the map
        errorCode = Map1.LastErrorCode
        'Display message box giving error message for the last error in the map
        MsgBox(Map1.get_ErrorMsg(errorCode))
    End Sub


VB 6 Usage
ReadOnlyProperty LastErrorCode() As Long
            Parameters

ReturnValue

The integer error code for the last error generated in the object.

Sample Code

    Private Sub LastErrorCode()
        Dim errorCode As Long
        'Get the last error in the map
        errorCode = Map1.LastErrorCode
        'Display message box giving error message for the last error in the map
        MsgBox (Map1.ErrorMsg(errorCode))
    End Sub

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

This page has been accessed 3,022 times. This page was last modified on 6 December 2005, at 07:34.