RPC HELP TRPCBroker ClearResults

From VistApedia
Revision as of 16:39, 4 July 2015 by Kdtop (talk | contribs) (Created page with "<h2>ClearResults Property</h2> Example <h3>Applies to</h3> TRPCBroker component Declaration property ClearResults: Boolean; Description The ClearResults design-time...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ClearResults Property

Example

Applies to

TRPCBroker component


Declaration property ClearResults: Boolean;


Description The ClearResults design-time property gives the developer the option to clear the Results property prior to every invocation of the Call method. The strCall and lstCall methods are unaffected by this property. Setting ClearResults to True clears the Results property.

If this property is True, then the Results property is cleared before every invocation of the Call method, thus, assuring that only the results of the last call are returned. Conversely, a setting of False accumulates the results of multiple calls in the Results property.

You can use the Broker Programmer Preferences Editor (BrokerProgPref.EXE located under the ..\BDK32 directory) to set the default value for this property when you add a TRPCBroker component to your form.

For a demonstration, please run the BrokerProgPref.EXE located in the ..\BDK32 directory.