Difference between revisions of "ISSERVER()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Function used to determine | + | Function used to determine how an application is being run |
==Syntax== | ==Syntax== | ||
Line 9: | Line 9: | ||
==Description== | ==Description== | ||
− | The ISSERVER() function returns .T. ( | + | The ISSERVER() function returns .T. (True) if the current application code is being run via the Lianja SQL Server or Lianja Cloud Server, otherwise .F. (False). |
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | if | + | if isserver() |
− | + | // running via server | |
endif | endif | ||
</code> | </code> | ||
Line 21: | Line 21: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Environment Functions]] | [[Category:Environment Functions]] | ||
+ | [[Category:Lianja VFP Extensions]] | ||
+ | [[Category:VFP Function Extensions]] |
Latest revision as of 05:54, 20 December 2012
Contents
Purpose
Function used to determine how an application is being run
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 Lianja SQL Server or Lianja Cloud Server, otherwise .F. (False).
Example
if isserver() // running via server endif