Difference between revisions of "ISSERVER()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Class==
 
Environment
 
 
 
 
==Purpose==
 
==Purpose==
Used to determine whether an application is being run via the Recital Database or Mirage Servers
+
Function used to determine whether an application is being run via the Recital Server
  
  
Line 12: Line 8:
  
 
==See Also==
 
==See Also==
[[GETENV()]], [[GETLOCALHOST()]], [[GETREMOTEADDR()]], [[GETREMOTEHOST()]], [[GETREMOTEUSER()]], [[ISMIRAGE()]]
+
[[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 Database or Mirage Servers.  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==
 
<code lang="recital">
 
<code lang="recital">
store 1 to mimagebtn
+
if not isserver()
if isserver()
+
     activate screen
     @23,46 say "ImageButton: " get mimagebtn;
+
    function "*HNB  *okbtn;*cancelbtn;*savebtn;*addbtn";
+
    valid v_imagebtn() size 2,2,-1
+
else
+
    @23,46 say "ImageButton: " get mimagebtn;
+
    function "*HNB ok,cancel;save;add";
+
    valid v_imagebtn() size 2,2,-1
+
 
endif
 
endif
 
</code>
 
</code>
Line 35: Line 24:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Environment]]
 
[[Category:Environment]]
 
[[Category:Environment Functions]]
 
[[Category:Environment Functions]]

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