RecSize

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

RecSize

Declaration

function RecSize: LongInt;

Description

Extracts the size of a record in the current table in number of bytes. This number will include 1 byte for the hidden deletion flag field.

Return Value

The size of the record is the sum of the field widths plus one for the deletion flag.

Delphi Example

// Display table info

Text1.Text := ApTbl.BaseDate;

Text2.Text := ApTbl.BaseName;

Text3.Text := IntToStr( ApTbl.RecSize );

Text4.Text := IntToStr( ApTbl.RecCount );

C++Builder Example

// Display table info

Text1->Text = ApTbl->BaseDate();

Text2->Text = ApTbl->BaseName();

Text3->Text = IntToStr( ApTbl->RecSize() );

Text4->Text = IntToStr( ApTbl->RecCount() );

See Also

FieldWidth