TMedTable.Scoped TMedTable

property Scoped: Boolean ;

Description

Scoped, ScopeTop and ScopeBottom properties define an alternative interface to set table ranges. ScopeTop and ScopeBottom properties allow to directly specify Top and Bottom values for index keys. Scoped property is used to examine status, activate or deactivate table scope (range).

ScopeTop and ScopeBottom values should be of the same type as active index value.

Setting Scoped to true activates the scope (range). Only records with key values between ScopeTop and ScopeBottom will be visible to application. To deactivate scope, set Scoped to flase.

Note:

When using scopes programmer is responsible to prepare scopping values in such a way that they match the expression used for index generation.

Example:

tab.ScopeTop := 10;

tab.ScopeBottom := 50;

tab.Scoped := true; activate scope