RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLocateParams.AddParam Method (string)

Adds a new key field name and value to the list.

Pascal
procedure AddParam(const ANameValue: string); overload;
procedure AddParam(const AName: string; const AValue: string); overload;
C++
__fastcall AddParam(const AnsiString ANameValue);
__fastcall AddParam(const AnsiString AName, const AnsiString AValue);

Call AddParam to add a new key field name and value to the list. There are two forms of the AddParam method. The first syntax lets you supply the key field name and value as separate parameters. The second syntax lets you supply them as a string of the form 'Name=Value'. 

AName is the name of the key field. This becomes the value of the ParamNames property for the new entry. 

AValue is the name of the key field's value. This becomes the value of the ParamValues property for the new entry. 

ANameValue is a string of the form 'Name=Value', where Name is the key field name and Value is its value. This becomes the value of the Items property for the new entry. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!