Difference between revisions of "MESSAGE()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Helen.george (Talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return last error encountered message | Function to return last error encountered message | ||
− | |||
==Syntax== | ==Syntax== | ||
MESSAGE([<expN>]) | MESSAGE([<expN>]) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ERRNO()]], [[ERROR()]] | + | [[ERRNO()]], [[ERROR()]] |
− | + | ||
==Description== | ==Description== | ||
The MESSAGE() function returns a character string describing the last error encountered. The optional parameter <expN> must result in 1, and when used will cause MESSAGE() to return the last program line which caused an error. | The MESSAGE() function returns a character string describing the last error encountered. The optional parameter <expN> must result in 1, and when used will cause MESSAGE() to return the last program line which caused an error. | ||
− | |||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | msg=message() | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category:Error Handling | + | [[Category:Error Handling]] |
− | + |
Latest revision as of 10:18, 4 February 2013
Contents
Purpose
Function to return last error encountered message
Syntax
MESSAGE([<expN>])
See Also
Description
The MESSAGE() function returns a character string describing the last error encountered. The optional parameter <expN> must result in 1, and when used will cause MESSAGE() to return the last program line which caused an error.
Example
msg=message()