Difference between revisions of "RPC HELP TParamRecord PType Property Example"

From VistApedia
Jump to: navigation, search
(Created page with "<h2>PType Example</h2> The following program code demonstrates a couple of different uses of the PType property. Remember that each Param[x] element is really a TParamRecord-...")
 
(No difference)

Latest revision as of 00:38, 4 July 2015

PType Example

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


   procedure TForm1.Button1Click(Sender: TObject);
   begin
     with brkrRPCBroker1 do begin
       RemoteProcedure := 'SET NICK NAME';
       Param[0].Value := 'DUZ';
       Param[0].PType := reference;
       Param[1].Value := edtNickName.Text;
       Param[1].PType := literal;
       Call;
     end;
   end;

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