Difference between revisions of "DIE()"
From Lianjapedia
Helen.george (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | die("User "+user()+ " exited at "+time()) | |
− | + | ||
− | + | ||
− | + | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category: | + | [[Category:User Defined Functions]] |
− | + | ||
[[Category:Lianja VFP Extensions]] | [[Category:Lianja VFP Extensions]] | ||
[[Category:VFP Function Extensions]] | [[Category:VFP Function Extensions]] |
Latest revision as of 07:56, 4 February 2013
Contents
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())