Difference between revisions of "ISSERVER()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function used to determine whether an application is being run via the Recital Server | Function used to determine whether an application is being run via the Recital Server | ||
− | |||
==Syntax== | ==Syntax== | ||
ISSERVER() | ISSERVER() | ||
− | |||
==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 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. | 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== | ||
Line 22: | Line 18: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Environment Functions]] | [[Category:Environment Functions]] |
Revision as of 08:29, 7 December 2012
Contents
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