| previous next |
| Error |
| Syntax |
Error(S:STRING):ERROR |
| Summary |
return an error message |
| Description |
This function returns an error labeled with the string S. |
| Example |
Define T(N)
If Type(N) <> INT Then Error("Argument must be an integer.") EndIf;
Return Mod(N,5);
EndDefine;
T(1/3);
-------------------------------
ERROR: Argument must be an integer.
CONTEXT: Error("Argument must be an integer.")
-------------------------------
T(7);
2
-------------------------------
|
| See also: |