MapWinGIS:LastErrorCode
From MapWindow GIS
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
















