DB.TField.DataSize

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From DB.pas

	property DataSize: Integer read GetDataSize;


Unit: DB

Type: property

Visibility: public

Member Of: TField

C++ Information

From DB.hpp

	__property int DataSize = {read=GetDataSize};


Unit: DB

Type: property

Visibility: public

Member Of: TField

Description

Indicates the amount of memory needed to store a field component's value.


Check DataSize to determine the number of bytes required to store a field component's value. Use DataSize to determine the required size of a buffer for working with the field's value in native format. For example, use DataSize to determine the buffer size needed by the GetData and SetData methods.

The value of DataSize for TField is 0. Most descendants of TField override this property to specify the size required by the specific field type they represent. A value of zero should not be interpreted as meaning that the field value requires no memory. A value of zero indicates that the memory required for the field is indeterminate.

Note:  For TBlobField objects, DataSize returns the size of the blob object, if it can be determined.

See Also

Code Samples


Personal tools
Translations
Newest Version