TurboDB VCL Component Library

TTdbFieldDef.FieldNo

TTdbFieldDef

Previous  Top  Next

Identifies the physical field number used to reference the field.

Delphi syntax:

property FieldNo: Integer;

C++ syntax:

__property int FieldNo = {read=GetFieldNo, write=SetFieldNo, nodefault};

Description

Use FieldNo to find out where the physical field the field definition references is in the set of fields in the table. For example, if the value of FieldNo is 2, then the field is the second field in the underlying database table.

When adding field definitions to a dataset, set FieldNo to specify the location at which to create the field.

The difference between FieldNo and  InitialFieldNo is that InitialFieldNo represents the current status of the database table, whereas FieldNo is the field position, which will be valid after the next call to CreateTable or AlterTable.