Difference between revisions of "ERROR()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to determine the last error encountered | Function to determine the last error encountered | ||
− | |||
==Syntax== | ==Syntax== | ||
ERROR() | ERROR() | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ERRNO()]], [[MESSAGE()]] | + | [[ERRNO()]], [[MESSAGE()]] |
− | + | ||
==Description== | ==Description== | ||
The ERROR() function returns a number representing the last error encountered. A zero return value indicates that no error has been encountered. The MESSAGE() function can be used to get further information. | The ERROR() function returns a number representing the last error encountered. A zero return value indicates that no error has been encountered. The MESSAGE() function can be used to get further information. | ||
− | |||
==Example== | ==Example== | ||
Line 21: | Line 17: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Error Handling and Debugging]] | [[Category:Error Handling and Debugging]] | ||
[[Category:Error Handling and Debugging Functions]] | [[Category:Error Handling and Debugging Functions]] |
Revision as of 09:00, 10 February 2012
Contents
Purpose
Function to determine the last error encountered
Syntax
ERROR()
See Also
Description
The ERROR() function returns a number representing the last error encountered. A zero return value indicates that no error has been encountered. The MESSAGE() function can be used to get further information.
Example
? error() 0