Difference between revisions of "ISSERVER()"

From Lianjapedia
Jump to: navigation, search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
Function used to determine whether an application is being run via the Recital Server
+
Function used to determine how an application is being run
 
+
  
 
==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 Lianja SQL Server or Lianja Cloud Server, otherwise .F. (False).
 
+
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
if not isserver()
+
if isserver()
    activate screen
+
  // running via server
 
endif
 
endif
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Environment]]
 
 
[[Category:Environment Functions]]
 
[[Category:Environment Functions]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Latest revision as of 05:54, 20 December 2012

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