RPC HELP TParamRecord Value Property Example

From VistApedia
Jump to: navigation, search

Value Example

The following program code demonstrates a couple of different uses of the Value 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';
       {A variable reference}
       Param[0].Value := 'DUZ';
       Param[0].Ptype := reference;
       {A string}
       Param[1].Value := edtNickName.Text;
       Param[1].Ptype := literal;
       Call;
     end;
   end;