RAD Studio VCL Reference
|
Creates an instance of TParams.
constructor Create(Owner: TPersistent); overload; constructor Create; overload;
Call Create to instantiate a TParams object. Most applications will not need to create a TParams list, as it is created by the dataset that uses the TParams object.
Delphi Examples:
var SavedParams: TParams; { Initialize SavedParams } SavedParams := TParams.Create; try { Save the parameters for SQLDataSet1 } SavedParams.Assign(SQLDataSet1.Params); { Do something with SQLDataSet1 } ... { Restore the parameters to SQLDataSet1 } SQLDataSet1.Params.AssignValues(SavedParams); finally SavedParams.Free; end;
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|