RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdapterFields.ImplCanAddClass Method

Provides the underlying implementation for the CanAddClass method.

Pascal
function ImplCanAddClass(AParent: TComponent; AClass: TClass): Boolean; override;
C++
virtual __fastcall Boolean ImplCanAddClass(TComponent * AParent, TClass AClass);

The CanAddClass method calls ImplCanAddClass to determine whether an object of a specified type can be added to this collection. 

AParent is the TAdapterFields object to which the Web item will be added. 

AClass is the class of the proposed child item. 

ImplCanAddClass returns true if the TAdapterFields object can include a child of type AClass, false otherwise. 

ImplCanAddClass returns true if one of the following two conditions is met: 

AClass is an adapter field class that the associated adapter recognizes and accepts. 

AClass is a data entry field (a descendant of TAdapterUpdateField). 

 

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