Datasnap.DBClient.TCustomClientDataSet.CreateDataSet

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CreateDataSet;

C++

void __fastcall CreateDataSet(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Datasnap.DBClient TCustomClientDataSet

Description

Creates a new, empty client dataset.

Call CreateDataSet at run time to create a new, empty client dataset that can then be edited and saved.

If the FieldDefs property contains values, these values are used to create field definitions. Otherwise the Fields property is used. One or both of these properties must contain values in order to create a dataset. If neither property is set, CreateDataSet raises an exception.

If the IndexDefs property contains values, these values are used to create indexes for the dataset.

Note: You can create a dataset at design time as well: Create persistent field components or field definitions. Then right-click the client dataset and select Create Data Set.

See Also


Code Examples