RPC HELP TParamRecord PType Property Example

From VistApedia
Jump to: navigation, search

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.