Difference between revisions of "RPC HELP TRPCBroker strCall Method Example"

From VistApedia
Jump to: navigation, search
(Created page with "<h2>strCall Example</h2> The following program code demonstrates the use of the '''strCall''' method in a hypothetical example of bringing back the name of the user currently ...")
 
 
Line 2: Line 2:
 
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:
 
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);
+
     '''procedure''' TForm1.Button1Click(Sender: TObject);
     begin
+
     '''begin'''
 
       brkrRPCBroker1.RemoteProcedure := 'GET CURRENT USER NAME';
 
       brkrRPCBroker1.RemoteProcedure := 'GET CURRENT USER NAME';
 
       Label1.Caption := brkrRPCBroker1.strCall;
 
       Label1.Caption := brkrRPCBroker1.strCall;
     end;
+
     '''end;'''
 
 
 
NOTE: For a demonstration using the strCall method, please run the [[RPC_HELP_BrokerExampleEXE|BrokerExample.EXE]] located in the ..\BDK32\Samples\BrokerEx directory.
 
NOTE: For a demonstration using the strCall method, please run the [[RPC_HELP_BrokerExampleEXE|BrokerExample.EXE]] located in the ..\BDK32\Samples\BrokerEx directory.

Latest revision as of 14:12, 5 July 2015

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.