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.21
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.
The range of records to process, providing the same functionality as the ALL, REST and NEXT clauses of record processing commands.

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_BOTH Returns 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