Data.DB.TDataLink.Edit

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataLink

Delphi

function Edit: Boolean;

C++

bool __fastcall Edit();

Description

Attempts to drive the data source into an editing state if it is not already in one.

Use Edit to try to ensure that the current record can be modified. A return value of true indicates that the data source was already in an editing state, or that it was successfully changed to allow editing. A return value of false indicates that the data source could not be changed to allow editing. For example, if the ReadOnly property is true, Edit will not allow editing and will return false.

See Also