RPC HELP TRPCBroker strCall Method

From VistApedia
Revision as of 14:11, 5 July 2015 by Kdtop (talk | contribs) (Created page with "<h2>strCall Method</h2> Example <h3>Applies to</h3> TRPCBroker component <h3>Declaration</h3> ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

strCall Method

Example

Applies to

   TRPCBroker component

Declaration

   function strCall: string;

Description

The strCall method executes a remote procedure on the VistA M Server and returns the results as a value of a function. The strCall method expects the name of the remote procedure and its parameters to be set up in the RemoteProcedure and Param properties respectively. The Results property is not affected by this call. If ClearParameters is True, then the Param property is cleared after the call finishes.

NOTE: See RPC Limits for information about the size of parameters and results that can be passed to and returned from the TRPCBroker component.

NOTE: Whenever the Broker makes a call to the VistA M Server, if the cursor is crDefault, the cursor is automatically changed to the hourglass symbol as seen in other Microsoft-compliant software. If the application has already modified the cursor from crDefault to something else, the Broker will not change the cursor.

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