Difference between revisions of "DIE()"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
Line 31: Line 31:
 
[[Category:Applications]]
 
[[Category:Applications]]
 
[[Category:Applications Functions]]
 
[[Category:Applications Functions]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Revision as of 07:14, 10 December 2012

Purpose

Terminate session returning a message or status code


Syntax

DIE(<expC>|<expN>)


See Also

CLOSE, ERRORLEVEL(), EXIT(), QUIT, RUN


Description

The DIE() function closes all open files and ends the Lianja process, returns the specified message, <expC>, or status code (-1 to 254), <expN>, to the operating system or calling script.


Example

// Exit if [ABANDON] was pressed
if lastkey()=ctrl('g')
    die("User "+user()+ " exited at "+time())
endif


Products

Lianja, Lianja Server