Difference between revisions of "MESSAGE()"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Error Handling and Debugging
 
 
 
 
==Purpose==
 
==Purpose==
 
Function to return last error encountered message
 
Function to return last error encountered message
Line 33: Line 29:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 +
[[Category:Error Handling and Debugging]]
 +
[[Category:Error Handling and Debugging Functions]]

Latest revision as of 17:11, 3 December 2009

Purpose

Function to return last error encountered message


Syntax

MESSAGE([<expN>])


See Also

ERRNO(), ERROR(), ON ERROR


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

set exclusive off
on error *
use payroll
if not used()
    msg=message()
    dialog box "&msg..  Press any key to continue."
endif
set exclusive on


Products

Recital Server, Recital