GetAgent Function

Action

Retrieves the agent name. The agent name is the name of the computer where the simulation for the current user has been started.

Include file

Kernel.bdh

Syntax

GetAgent(): string;

Return value

The name of the agent.

Example

dcltrans
  transaction TGetAgent
  var
    sAgent: string;
  begin
    sAgent := GetAgent();
    write("agent = "); write(sAgent); writeln;
  end TGetAgent;

Output

agent = LocalHost