strCall Example

The following program code demonstrates the use of the strCall method in a hypothetical example of bringing back the name of the user currently logged on and automatically displaying it in a label:

procedure TForm1.Button1Click(Sender: TObject);
begin
  RPCBroker1.RemoteProcedure := 'GET CURRENT USER NAME';
  Label1.Caption := RPCBroker1.strCall;
end;