RPC HELP TParamRecord Value Property Example

From VistApedia
Revision as of 00:44, 4 July 2015 by Kdtop (talk | contribs) (Created page with "<h2>Value Example</h2> The following program code demonstrates a couple of different uses of the Value property. Remember that each Param[x] element is really a [[RPC_HELP_TP...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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;