Difference between revisions of "Error"
Line 8: | Line 8: | ||
Reports an evaluation-time error, displaying the indicated «message» to the end user in a dialog box and ending the current computation. | Reports an evaluation-time error, displaying the indicated «message» to the end user in a dialog box and ending the current computation. | ||
− | If [[ | + | If the expression in a [[Check Attribute]] calls [[Error]](), it displays the error message as a warning dialog, instead of the default failed-check message that otherwise appears when the [[Check Attribute]] evaluates to False (0). |
= Examples = | = Examples = |
Revision as of 21:26, 18 July 2012
Function Error(message)
Reports an evaluation-time error, displaying the indicated «message» to the end user in a dialog box and ending the current computation.
If the expression in a Check Attribute calls Error(), it displays the error message as a warning dialog, instead of the default failed-check message that otherwise appears when the Check Attribute evaluates to False (0).
Examples
If not IsNumber(x) Then Error("Something is wrong. x is not numeric."); ...
See Also
Comments
Enable comment auto-refresher