RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSQLDataSet.Create Constructor (TComponent)

Creates an instance of a TCustomSQLDataSet component.

Pascal
constructor Create(AOwner: TComponent); override; overload;
constructor Create(AOwner: TComponent; DBXReader: TDBXReader; AOwnsInstance: Boolean); overload; reintroduce;
C++
virtual __fastcall TCustomSQLDataSet(TComponent * AOwner);
__fastcall TCustomSQLDataSet(TComponent * AOwner, TDBXReader DBXReader, Boolean AOwnsInstance);

Call Create to instantiate an SQL dataset component at runtime. SQL datasets placed in forms or data modules at design time are created automatically. 

TCustomSQLDataSet is rarely used directly in applications because many of its properties are protected. Instead, applications instantiate TCustomSQLDataSet descendants such as TSQLDataSet, TSQLTable, TSQLQuery, or TSQLStoredProc

AOwner is the component that is responsible for freeing the dataset. It becomes the value of the Owner property. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!