Click or drag to resize

DbScope Function

X#
Checks if a scope is set in a work area.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION DbScope(
	uScope
) AS USUAL CLIPPER
Request Example View Source

Parameters

uScope (Optional)
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