(available at run-time only)
Applies to
TRPCBroker component
Declaration
property Param: TParams;
Description
This property is available at run-time only. It
holds all of the parameters that the application needs to pass to the remote
procedure using the
Call, strCall, or
lstCall methods.
Param is a zero-based
array of TParamRecord. You don't need to explicitly
allocate any memory for the Param property. Simple reference to an element or a
value assignment ( := ) dynamically allocates memory as needed. You should start
with the 0th element and proceed in sequence. Do not skip
elements.
Each element in the Param array has the following properties:
Mult |
PType |
Value |
Passing multiple parameters of PType list
in one remote
procedure call (RPC) is not supported at this
time. Only one list parameter can be passed to an RPC, and it must be the last
parameter in the actual list.
The Param relationship to the TRPCBroker component is as follows:
The TRPCBroker component contains the Param property (i.e.,
TParams component).
The TParams component
contains the ParamArray property (array [I:integer]: TParamRecord
component).
The TParamRecord component contains the
Mult property (i.e., TMult component).
The
TMult component contains the MultArray property (array[S: string]: string).
The
MultArray property internally uses a TStringList in which each element's object
is a TString.
If the remote procedure on the server does not require any incoming parameters, applications can pass an empty Param property. The client application merely sets the RemoteProcedure property and makes the call. If the Param property retains a value from a previous call, it can be cleared using the ClearParameters property. Thus, it is possible to make a call without passing any parameters.
The following restrictions apply with the Param property: