RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTable.SetRangeEnd Method

Indicates that subsequent assignments to field values specify the end of the range of rows to include in the dataset.

Pascal
procedure SetRangeEnd;
C++
__fastcall SetRangeEnd();

Call SetRangeEnd to put the dataset into dsSetKey state, erase any previous end range values, and set them to NULL. Subsequent key buffer field assignments can be made using the FieldByName method to set the ending values for a range. 

After assigning end-range values to FieldValues, call ApplyRange to activate the modified range.

Note: With Paradox or dBASE tables, SetRangeEnd works only on indexed fields. With SQL databases, SetRangeEnd also works with any columns specified in the IndexFieldNames property.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!