Value Example

The following program code demonstrates a couple of different uses of the Value property. Remember that each Param[x] element is really a TParamRecord-type component.

procedure TForm1.Button1Click(Sender: TObject);
begin
  with RPCBroker1 do begin
    RemoteProcedure := 'SET NICK NAME';
    Param[0].Value := 'DUZ';             {A variable reference}
    Param[0].Ptype := reference;
    Param[1].Value := edtNickName.Text;  {A string}
    Param[1].Ptype := literal;
    Call;
  end;
end;