Maptitude GISDK Help |
Causes an error to be raised.
Added to Version 5.0.
Throw(string text [ ,errortype type_of_error])
Argument |
Contents |
text |
The string to be displayed in the error message box or returned by GetLastError(), or null for no error message |
type_of_error |
Optional. The type of error that will be thrown. Default is error. See also Error Handling. |
If type_of_errror is null, the error can be handled by an On Error statement, othewise it must be handled with the corresponding error type.
Note that the type of error is not a string, but an error data type.
on notfound do
ShowMessage("Encountered a not-found error " + GetLastError())
Return()
end
Throw("an error was raised", notfound)
Function |
Summary |
Gets the text of the last error generated by Maptitude |
|
Toggles showing the reference information when calling GetLastError() |
|
Causes a macro error with the specified string if the test expression is false (0). |
©2025 Caliper Corporation | www.caliper.com |