RPC HELP TRPCBroker Param Example: Difference between revisions
From VistApedia
Jump to navigationJump to search
Created page with "<h2>Param Example</h2> The following program code demonstrates how the Param property of a TRPCBroker component is referenced and filled with two parameters that the remote p..." |
(No difference)
|
Latest revision as of 17:57, 4 July 2015
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.