ISSERVER()

From Lianjapedia
Revision as of 07:27, 10 December 2012 by Admin (Talk | contribs)

Jump to: navigation, search

Purpose

Function used to determine whether an application is being run via the Lianja 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 Lianja Server. If the application is being run on Lianja 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