RPC HELP TRPCBroker strCall Method Example

From VistApedia
Jump to: navigation, search

strCall Example

The following program code demonstrates the use of the strCall method in a hypothetical example of bringing back the name of the user currently logged on and automatically displaying it in a label:

   procedure TForm1.Button1Click(Sender: TObject);
   begin
     brkrRPCBroker1.RemoteProcedure := 'GET CURRENT USER NAME';
     Label1.Caption := brkrRPCBroker1.strCall;
   end;

NOTE: For a demonstration using the strCall method, please run the BrokerExample.EXE located in the ..\BDK32\Samples\BrokerEx directory.