Data.DB.TDataSet.SetDefaultFields

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataSet

Delphi

procedure SetDefaultFields(const Value: Boolean); deprecated 'Use TField.LifeCycle or TFields.LifeCycles properties instead';

C++

void __fastcall SetDefaultFields _DEPRECATED_ATTRIBUTE1("Use TField.LifeCycle or TFields.LifeCycles properties instead") (const bool Value);

Description

Attention: SetDefaultFields is deprecated.

Specifies whether a dataset's underlying field components are generated dynamically when the dataset is opened.

SetDefaultFields is used to specify whether a dataset's underlying field components are generated dynamically when the dataset is opened. If the Value parameter is True, the dataset uses dynamically allocated field components, and persistent field components otherwise. See the Filtered documentation for further details on how to use the property.

Note: TDataSet.SetDefaultFields is marked as deprecated. Use TFields.LifeCycles and TField.LifeCycle instead.

See Also