MESSAGE()

From Recital Documentation Wiki
Revision as of 17:11, 3 December 2009 by Helengeorge (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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