RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBlobField.SetFieldType Method

Specifies the type of the BLOB field.

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

Use SetFieldType to change the field type of a BLOB field, overriding the default type.  

Normally, the type of the physical database field is checked and a TFieldType is selected that matches most closely. BLOB fields can indicate more explicitly what kind of BLOB is in the database. Specify the BLOB type as the value of the Value parameter. 

The following table contains the possible values for BLOB fields. Calling SetFieldType with any other data type does nothing.

Description 
ftBlob  
Binary Large Object field  
ftMemo  
Text memo field  
ftGraphic  
Bitmap field  
ftFmtMemo  
Formatted text memo field  
ftParadoxOle  
Paradox OLE field  
ftDBaseOle  
dBASE OLE field  
ftTypedBinary  
Typed binary field  
ftOraBlob  
BLOB fields in Oracle 8 tables  
ftOraClob  
CLOB fields in Oracle 8 tables  

Note: Calling SetFieldType does the same thing as setting the BlobType property.
 

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