Difference between revisions of "CERROR()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) (→Description) |
||
Line 9: | Line 9: | ||
==Description== | ==Description== | ||
− | The CERROR() function returns the number of the last error message encountered during a compile operation. If no compiler errors are found, the CERROR() function returns a zero. The COMPILE command is used to compile program files; however other commands may also cause a program file to be compiled | + | The CERROR() function returns the number of the last error message encountered during a compile operation. If no compiler errors are found, the CERROR() function returns a zero. The COMPILE command is used to compile program files; however other commands may also cause a program file to be compiled. |
==Example== | ==Example== |
Revision as of 06:59, 10 February 2012
Contents
Purpose
Function to return the number of the last error encountered during a compile operation
Syntax
CERROR()
See Also
COMPILE, DO, ERROR(), SET PROCEDURE
Description
The CERROR() function returns the number of the last error message encountered during a compile operation. If no compiler errors are found, the CERROR() function returns a zero. The COMPILE command is used to compile program files; however other commands may also cause a program file to be compiled.
Example
procedure comp_err on error if cerror() > 0 dialog box "Compile Error#" +; str(cerror() ,4) endif return on error do com_err compile proclib.prg