Click or drag to resize

DbSetScope Function

X#
Sets scope values.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntax
 FUNCTION DbSetScope(
	nScope AS LONG,
	uValue AS USUAL
) AS LOGIC
Request Example View Source

Parameters

nScope
Type: Long
A 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.
uValue
Type: Usual
The value that needs to be set. The type of the value must match the type of the index expression.

Return Value

Type: Logic
TRUE when the scope was set succesfully and when the record pointer has been successfully moved to the first record in the scope, otherwise FALSE.
Remarks
The record pointer is moved to the first record in the scope when setting of the scope was succesfull.
See Also