ProcessIsServer
Determines if the currently executing process contains a particular server component.
Syntax
ProcessIsServer(sServerType [, sClusterName] [, sServerName])
sServerType:
Case insensitive string specifying the type of server to check for. Supported values are "IOServer", "Trend", "Alarm" and "Report".
sClusterName:
Optional case insensitive string specifying the cluster name to combine with the server type specified in the first argument and the server name (if specified).
sServerName:
Optional case insensitive string specifying a server name to combine with the server type specified in the first argument and the cluster name (if specified).
Return Value
TRUE (1) if the process contains the specified component, otherwise FALSE (0).
Related Functions
ProcessIsClient, ServerInfo, ServerInfoEx, ServiceGetList
Example
To execute disk PLC tag simulation code only on the I/O server in Cluster1 with the name IOServer3:
IF (ProcessIsServer("IOServer", "Cluster1", "IOServer3")) THEN
SimulateDiskTags();
END
See Also