Difference between revisions of "ISSERVER()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Function used to determine whether an application is being run via the Recital | + | Function used to determine whether an application is being run via the Recital Server |
Line 8: | Line 8: | ||
==See Also== | ==See Also== | ||
− | [[GETENV()]], [[GETLOCALHOST()]], [[GETREMOTEADDR()]], [[GETREMOTEHOST()]], [[GETREMOTEUSER()]], [[ISFIRECAT()]], [[ISLIANJA() | + | [[GETENV()]], [[GETLOCALHOST()]], [[GETREMOTEADDR()]], [[GETREMOTEHOST()]], [[GETREMOTEUSER()]], [[ISFIRECAT()]], [[ISLIANJA()]] |
==Description== | ==Description== | ||
− | The ISSERVER() function returns .T. (TRUE) if the current application code is being run via the Recital | + | The ISSERVER() function returns .T. (TRUE) if the current application code is being run via the Recital Server. If the application is being run on Recital Terminal Developer, ISSERVER() will return .F. (FALSE). This allows developers to customize code for the particular environment yet share the same code across all environments. |
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | |||
if not isserver() | if not isserver() | ||
activate screen | activate screen |
Latest revision as of 15:52, 1 July 2011
Purpose
Function used to determine whether an application is being run via the Recital Server
Syntax
ISSERVER()
See Also
GETENV(), GETLOCALHOST(), GETREMOTEADDR(), GETREMOTEHOST(), GETREMOTEUSER(), ISFIRECAT(), ISLIANJA()
Description
The ISSERVER() function returns .T. (TRUE) if the current application code is being run via the Recital Server. If the application is being run on Recital Terminal Developer, ISSERVER() will return .F. (FALSE). This allows developers to customize code for the particular environment yet share the same code across all environments.
Example
if not isserver() activate screen endif
Products
Recital Server, Recital