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
















