Difference between revisions of "Error"

Line 9: Line 9:
  
 
If [[Error]]() is called from inside a [[Check Attribute]], it is displayed as a warning and replaces the standard failed-check message.
 
If [[Error]]() is called from inside a [[Check Attribute]], it is displayed as a warning and replaces the standard failed-check message.
 +
 +
= Examples =
 +
 +
If not IsNumber(x) Then Error("Something is wrong.  x is not numeric.");
 +
...
  
 
= See Also =
 
= See Also =

Revision as of 21:34, 23 November 2009


Function Error(message)

Raises an evaluation-time error, displaying the indicated «message» to the end user and aborting the current computation.

If Error() is called from inside a Check Attribute, it is displayed as a warning and replaces the standard failed-check message.

Examples

If not IsNumber(x) Then Error("Something is wrong.  x is not numeric.");
...

See Also

See Also

Comments


You are not allowed to post comments.