Data.DB.TDataLink.Edit

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Edit: Boolean;

C++

bool __fastcall Edit();

Properties

Type Visibility Source Unit Parent
function public
Data.DB.pas
Data.DB.hpp
Data.DB TDataLink

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