RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFieldDataLink.Edit Method

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

Pascal
function Edit: Boolean;
C++
__fastcall Boolean Edit();

Use Edit to try to ensure that the contents of the field can be modified. A return value of true indicates that the field was already in an editing state, or that the DataSource was successfully changed to allow editing. A return value of false indicates that the DataSource could not be changed to allow editing. For example, if the CanModify property is false, Edit fails, and returns false. 

 

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