Advantage TDataSet Descendant
Sets the current record to the given relative position in the given index order.
procedure AdsSetRelKeyPos( dPos : Double );
|
dPos |
Set relative key positions. The value specified in the dPos parameter must be in the range from 0.0 to 1.0, where 0.0 would indicate the top of the index and 1.0 refers to the bottom. |
AdsSetRelKeyPos approximates the position in the index order based on the given value. If there is a scope set, AdsSetRelKeyPos calculates and sets the relative position relative to the current scope.
AdsTable1.Active := TRUE;
{ go to the approximate center of the current index }
AdsTable1.AdsSetRelKeyPos( 0.50 );