RPC HELP TRPCBroker Connected Example

From VistApedia
Revision as of 17:10, 4 July 2015 by Kdtop (talk | contribs) (Created page with "<h2>Connected Example</h2> The following program code sets the Connected property to True: '''procedure''' TForm1.btnConnectClick(Sender: TObject); '''begin''' ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Connected Example

The following program code sets the Connected property to True:


   procedure TForm1.btnConnectClick(Sender: TObject);
   begin
     brkrRPCBroker1.Server := edtServer.Text;
     brkrRPCBroker1.ListenerPort := StrToInt(edtPort.Text);
     brkrRPCBroker1.Connected := True;
   end;

The Server and ListenerPort properties must be set at design or run-time before setting the Connected property to True.