Difference between revisions of "DIE()"

From Lianjapedia
Jump to: navigation, search
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Terminate session returning a message or status code
 
Terminate session returning a message or status code
 
  
 
==Syntax==
 
==Syntax==
 
DIE(<expC>|<expN>)
 
DIE(<expC>|<expN>)
 
  
 
==See Also==
 
==See Also==
 
[[CLOSE]], [[ERRORLEVEL()]], [[EXIT()]], [[QUIT]], [[RUN]]
 
[[CLOSE]], [[ERRORLEVEL()]], [[EXIT()]], [[QUIT]], [[RUN]]
 
  
 
==Description==
 
==Description==
The DIE() function closes all open files and ends the Recital process, returns the specified message, <expC>, or status code (-1 to 254), <expN>, to the operating system or calling script.   
+
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==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
// Exit if [ABANDON] was pressed
+
die("User "+user()+ " exited at "+time())
if lastkey()=ctrl('g')
+
    die("User "+user()+ " exited at "+time())
+
endif
+
 
</code>
 
</code>
 
 
==Products==
 
Recital, Recital Server
 
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Applications]]
+
[[Category:User Defined Functions]]
[[Category:Applications Functions]]
+
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Latest revision as of 07:56, 4 February 2013

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

die("User "+user()+ " exited at "+time())