Data.DB.TField.Index

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: TField

Delphi

property Index: Integer read GetIndex write SetIndex stored False;

C++

__property int Index = {read=GetIndex, write=SetIndex, stored=false, nodefault};

Description

Specifies the field component's index in the Fields property of the dataset.

Use the Index property to:

Find the position of the field in the dataset.

Change the order of a field's position in the dataset by changing the value of Index. Changing the Index value affects the order in which fields are displayed in data grids, but not the position of the fields in physical database tables.

Note: The field order can also be changed by dragging and dropping fields in the Fields editor at design time.

See Also