FireDAC.Comp.DataSet.TFDDataSet.SetRangeEnd

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetRangeEnd;

C++

void __fastcall SetRangeEnd();

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDDataSet

Description

Sets the ending values of a range.

Use SetRangeEnd to put the dataset into the dsSetKey state and erase any previously specified ending range values. 

After that, the application can assign ending range values to the dataset indexed fields.

Example

FDQuery1.IndexFieldNames := 'CUST_NO';
...
FDQuery1.SetRangeEnd;
FDQuery1.FieldByName('CUST_NO').AsInteger := 200;
...
FDQuery1.ApplyRange;

See Also