Data.DB.TFieldDef.Size

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TFieldDef

Delphi

property Size: Integer read GetSize write SetSize default 0;

C++

__property int Size = {read=GetSize, write=SetSize, default=0};

Description

Reports the size associated with the field in the physical database table.

Use Size to determine the size associated with the corresponding physical field.

Size is meaningful only for a field definition object with one of the following TFieldType values: ftString, ftBCD, ftBytes, ftVarBytes, ftBlob, ftMemo or ftGraphic. For string and byte fields, Size is the number of bytes reserved in the table for the field. For a BCD field, Size is the number of digits following the decimal point. For a BLOB, memo, or graphic field, Size is the number of bytes from the field's value that are stored in the actual database table.

See Also

Code Examples