RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReferenceField.Size Property

Indicates the size used in the definition of the physical database field for data types that support different sizes.

Pascal
property Size: Integer;
C++
__property int Size;

The interpretation of Size depends on the data type. The meaning of Size for data types that use it is given in the following table. For all other data types, Size is not used and its value is always 0.

DataType 
Meaning of Size 
ftBCD  
Size is the number of digits after the decimal place.  
ftString  
Size is the maximum number of characters in the string.  
ftVarBytes  
Size is the maximum number of bytes of data, not counting the first two bytes which indicate the actual number of bytes of data that were used.  
ftBytes  
Size is the maximum number of bytes of data.  
ftBlob  
Size is the number of bytes from the BLOB that are stored in the record buffer.  
ftDBaseOle  
Size is the number of bytes from the dBASE OLE BLOB that are stored in the record buffer.  
ftFMTBCD  
Size is the number of digits after the decimal place.  
ftFmtMemo  
Size is the number of bytes from the memo that are stored in the record buffer.  
ftGraphic  
Size is the number of bytes from the image that are stored in the record buffer.  
ftMemo  
Size is the number of characters from the memo that are stored in the record buffer.  
ftParadoxOle  
Size is the number of bytes from the Paradox OLE BLOB that are stored in the record buffer.  
ftTypedBinary  
Size is the number of bytes from the BLOB that are stored in the record buffer.  
ftADT  
Size is the total number of fields contained in the ADT field, including the fields of child fields that are of type ADT.  
ftArray  
Size is the number of elements in the array.  

 

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