Param Example

The following program code demonstrates how the Param property of a TRPCBroker component is referenced and filled with two parameters that the remote procedure expects:

procedure TForm1.Button1Click(Sender: TObject);
begin
  {first parameter is a single string}
  RPCBroker1.Param[0].Value := '05/01/97';
  RPCBroker1.Param[0].PType := literal;
  {second parameter is a list}
  RPCBroker1.Param[1].Mult['"NAME"'] := 'SMITH,JOHN';
  RPCBroker1.Param[1].Mult['"SSN"'] := '123-45-6789';
  RPCBroker1.Param[1].PType := list;
end;