TMedTable.ApplyRange TMedTable

procedure ApplyRange;

Description

After the range values are defined by using SetStartRange, SetEndRange, EditStartRange and EditEndRange methods, use ApplyRange to activate the defined range. When the range is active only records within a defined range are available to the application.

After a range is activated, the cursor is positioned on the first record in the range.

See TTable.ApplyRange for more details.

Example:

tab.EditRangeStart;

tab.FieldByName('ProdClass').AsString := 'FOTO';

tab.EditRangeEnd;

tab.FieldByName('ProdClass').AsString := 'FOTO';

tab.ApplyRange; apply the ranges - only FOTO products will be visible