RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TParameters.IsEqual Method

Indicates whether two TParameters objects have identical contents.

Pascal
function IsEqual(Value: TParameters): Boolean;
C++
__fastcall Boolean IsEqual(TParameters Value);

Use IsEqual to compare the contents of two TParameters objects. IsEqual returns true if the parameter collection specified in Value exactly matches the calling parameter collection. To match, each parameter collection must have the same number of TParameter objects, in the same order, which match on name, datatype, parameter type, and value.

if (ADOQuery1.Parameters.IsEqual(ADOQuery2.Parameters) then
  { do one thing }
else
  { do something else };

 

if (ADOQuery1->Parameters->IsEqual(ADOQuery2->Parameters)
  // do one thing
else
  // do something else

 

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