SetLoadError
This method must be used to report an error condition to the project, if an error occurs in the OnLoadProject event .
The specified error code is used as return value from the Load or LoadVersion that has triggered the OnLoadProject event.
Syntax
SetLoadError (ErrorNumber As Long, ErrorDescription As String, ErrorSource As String)
Parameter | Description |
---|---|
ErrorNumber |
The ErrorNumber must be negative to specify an error code. |
ErrorDescription |
Description of the error. |
ErrorSource |
Name of the error source or module to specify the location where error occurred. |