RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.SetFieldType Method

Provides the interface for a method that can set the DataType for the field.

Pascal
procedure SetFieldType(Value: TFieldType); virtual;
C++
virtual __fastcall SetFieldType(TFieldType Value);

As implemented in TField, SetFieldType does nothing. Descendant classes override SetFieldType to set the DataType for the field component. SetFieldType is useful for derived classes that can support more than one underlying data type. For example, a TBlobField may support ftBlob, ftFmtMemo, ftParadoxOle, ftDBaseOle, or ftTypedBinary. 

 

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