Occurs when the Text Control reports an error.
Syntax
Error(Number, Description, Scode, Source, HelpFile, HelpContext, CancelDisplay)
Parameters
| Parameter | Description |
|---|
| Number | Is the error number. |
| Description | Is a corresponding error string. This string can be changed. |
| Scode | Is the OLE Status Code. |
| Source | Is the name of the module which caused the error. |
| HelpFile | Is the name of a help file. |
| HelpContext | Is the help context ID in this help file. |
| CancelDisplay | Can be set to True if the application wants to display its own error string. When this parameter is not set to True, the control will display a message box showing the error string. |
Data Types
| Name | Data type |
|---|
| Number | Integer |
| Description | String |
| Scode | Long |
| Source | String |
| HelpFile | String |
| HelpContext | Long |
| CancelDisplay | Boolean |