EntityDAC

TCustomEntityDataSet.CurrentObject Method

Returns the current entity in the dataset.

Class

TCustomEntityDataSet

Syntax

function CurrentObject: TObject;

Remarks

Read the property to access the current entity in the dataset as TObject instance.

When the dataset is TEntityDataSet and its source is defined using TEntityDataSet.SourceObject or TEntityDataSet.SourceEntity then the CurrentObject property returns the source entity.

When the dataset is TEntityDataSet and its source is defined using the TEntityDataSet.SourceCollection property then the CurrentObject property returns the current entity in the source collection.

For TEntityTable and TEntityQuery, the CurrentObject property returns the current entity in the dataset.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback