RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBClient.PackageParams Function

Converts a TParams object into an OleVariant that can be used in multi-tiered applications.

Pascal
function PackageParams(Params: TParams; Types: TParamTypes = AllParamTypes): OleVariant;
C++
OleVariant PackageParams(TParams Params, TParamTypes Types = AllParamTypes);

DBClient

IAppServer methods that pass parameter values to or from the application server use an OleVariant to represent those parameters. Client datasets use PackageParams to convert their Params property into the OleVariant format. Use PackageParams to encode parameter values when using the IAppServer interface directly rather than using the methods of TClientDataSet

The Params parameter is a TParams object (usually the Params property of the source component) whose parameter values are to be encoded. 

The Types parameter indicates which parameters from the Params parameter are to be included. This allows applications to include, for example, only input parameters if no others are needed. 

PackageParams returns an OleVariant that encodes the parameter values as a Variant array. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!