RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParams.AddParam Method

Inserts a new field parameter into the Items list.

Pascal
procedure AddParam(Value: TParam);
C++
__fastcall AddParam(TParam Value);

Use AddParam to add an instantiated parameter to the Items list. To create a field parameter as well as add it to the list, use CreateParam instead.

Note: Parameters for datasets that represent queries are only created by specifying parameters in the SQL statement. The TParam objects in such a dataset's1` Params property are created automatically when parameter tokens are added to the SQL statement.
 

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