TDataSet.State property
Current operational state of the dataset.
Declaration
property State: TDataSetState read FState;Description
State determines the current operational state of the dataset. During it's lifetime,
the dataset is in one of many states, depending on which operation is currently in progress:
- If a dataset is closed, the
StateisdsInactive. - As soon as it is opened, it is in
dsBrowsemode, and remains in this state while changing the cursor position. - If the
EditorInsertorAppendmethods is called, theStatechanges todsEditordsInsert, respectively. - As soon as edits have been posted or cancelled, the state is again
dsBrowse. - Closing the dataset sets the state again to
dsInactive.
There are some other states, mainly connected to internal operations, but which can become visible in some of the dataset's events.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
