FireDAC.Comp.DataSet.TFDDataSet.EditRangeEnd
Delphi
procedure EditRangeEnd;
C++
void __fastcall EditRangeEnd();
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
procedure function |
public | FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp |
FireDAC.Comp.DataSet | TFDDataSet |
Beschreibung
Enables changing the ending value for an existing range.
Call EditRangeEnd to bring the dataset to the dsSetKey
state and change the ending value for an existing range.
After the call, the application can modify indexed fields. To iterate through them, use the IndexFieldCount and IndexFields properties. Optionally, the value of the KeyFieldCount and/or KeyExclusive properties can be edited.
After assigning a new ending value, call ApplyRange to activate the modified range.
Example
FDQuery1.IndexFieldNames := 'CUST_NO';
FDQuery1.SetRangeStart;
FDQuery1['CUST_NO'] := 100;
FDQuery1.SetRangeEnd;
FDQuery1['CUST_NO'] := 200;
FDQuery1.ApplyRange;
......
FDQuery1.EditRangeEnd;
FDQuery1['CUST_NO'] := FDQuery1['CUST_NO'] - 1;
FDQuery1.ApplyRange;
See Also
- Filtern von Datensätzen
- FireDAC.Comp.DataSet.TFDDataSet.ApplyRange
- FireDAC.Comp.DataSet.TFDDataSet.CancelRange
- FireDAC.Comp.DataSet.TFDDataSet.EditRangeStart
- FireDAC.Comp.DataSet.TFDDataSet.IndexFieldNames
- FireDAC.Comp.DataSet.TFDDataSet.IndexName
- FireDAC.Comp.DataSet.TFDDataSet.KeyExclusive
- FireDAC.Comp.DataSet.TFDDataSet.SetRange
- FireDAC.Comp.DataSet.TFDDataSet.SetRangeEnd
- FireDAC.Comp.DataSet.TFDDataSet.SetRangeStart