checkserverconnection
SERVER
,
STATUS

The checkserverconnection statement checks to see if the specified server is connected.


Parameters

This statement has two parameters:

server – name of the server to check. If empty, then use the server associated with the current database.

status – field or variable for result, will be set to true if the connection is ok, false if the connection is broken.


Description

This statement tests the connection to the specified server. It returns true in the second parameter if the connection is ok, false if there is a problem.

local connectStatus
checkserverconnection "Company Server",connectStatus
if connectStatus=false()
    alertsheet "Sorry, server is not connected."
    return
endif

This function is also available as a function that can be used in a formula, see checkserverconnection(.

Note: This statement checks the connection by sending a ping to the server.


See Also


History

VersionStatusNotes
10.2UpdatedCarried over from Panorama 6.0, but works differently (returns result in second parameter instead of throwing an error).