RPC HELP TRPCBroker Param Example

From VistApedia
Jump to: navigation, search

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}
     brkrRPCBroker1.Param[0].Value := '05/01/97';
     brkrRPCBroker1.Param[0].PType := literal;
     {second parameter is a list}
     brkrRPCBroker1.Param[1].Mult['"NAME"'] := 'SMITH,JOHN';
     brkrRPCBroker1.Param[1].Mult['"SSN"'] := '123-45-6789';
     brkrRPCBroker1.Param[1].PType := list;
   end;

For a demonstration using the Param property, please run the BrokerExample.EXE located in the ..\BDK32\Samples\BrokerEx directory.