Description
Shows the user an error message.
The parameter appendextralines controls if two extra line breaks are post-fixed to the message. This has the effect of making the error message easier to read as it has extra white space in the Microsoft pop-up dialog. The parameter appendextralines is defaulted to true if not supplied.
The parameter showdetailedmessage controls if just the message provided in the first parameter is shown to the end user or a more detailed one. The default is true so a more detailed message.
Signature 1
ThrowError('message', ['appendextralines'], ['showdetailedmessage'])
Example 1
ThrowError('The start date must be before the end date.')
Example 2
ThrowError('The start date must be before the end date.', false)
Example 3
ThrowError('The start date must be before the end date.', false, false)
Parameters
Name | Type | Description | Required |
---|---|---|---|
Value | xxxx | xxxx | xxxx |