Click or drag to resize

Functions.DbScope Method

Checks if a scope is set in a work area.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.07
Syntax
 FUNCTION DbScope(
	 uScope AS USUAL
) AS USUAL
View Source

Parameters

uScope
Type: __Usual
An optional constant that indicates which scope needs to be set.
DEFINEDescription
SCOPE_TOPThe top scope.
SCOPE_BOTTOMThe bottom scope.
SCOPE_BOTHThe top and also the bottom scope. This is the default.

Return Value

Type: __Usual
The return value depends on the parameter that is passed in:
ParameterReturn value
no parameterReturns .T. (true) if a scope is defined, and .F. when no scope is defined.
SCOPE_TOPReturns the top scope value, or NIL if no top scope is set.
SCOPE_BOTTOMReturns the bottom scope value, or NIL if no bottom scope is set.
SCOPE_BOTHReturns an array with 2 elements with the Top scope in element 1 and the Bottom scope in element 2. When a scope is not set then the value NIL is stored in the array
See Also