GetLocalNumber

(RPC Manager Library)

Description: Returns the index of the local workstation down the prioritized server list for the named service.
Returns: Numeric
Usage: Steady State only.
Function Groups: Network
Related to:  
Format: \RPCManager.GetLocalNumber(Service [, OptGUID]);
Parameters:  
Service
Required. The name by which the service is known.
OptGUID
An optional parameter that is any expression giving the 16-byte binary form of the globally unique identifier (GUID) for the application in which the service instance is located. The default is the application to which the caller belongs.
Comments:

This module is a member of the RPC Manager's Library, and must therefore be prefaced by \RPCManager, as shown in the "Format" section.

If the application you are developing is a script application, the module call must be prefaced by System\RPCManager, and the System variable must be declared in AppRoot.src.

The machine at the top of the prioritized server list will return an index of zero. If the local machine cannot be a server for the specified service, -1 is returned.

RPC Manager Service