TAstaClientDataSet.SetEditMode
Applies to
TAstaClientDataSet
Declaration
procedure SetEditMode(const
Primes: array of string;
TheUpdateTable: string; TheUpdateMethod: TAstaUpdateMethod);
Description
The SetEditMode method can be used to enable editing on an AstaClientDataSet
at run time.
uses AstaDBtools;
with AstaClientDataSet1
do begin
Close;
SQL.Clear;
SQL.Add('SELECT * FROM EMPLOYEE');
Open;
SetEditMode(['EmpNo'], 'Employee', umAfterPost);
end;
Note: AstaClientDataSets can be enabled for edits at design time using the EditMode property.