DbScope Function | |
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
[ClipperCallingConventionAttribute(new string[] { ... })]
public static Usual DbScope(
Usual uScope = default
)
Request Example
View SourceParameters
- uScope (Optional)
- Type: Usual
An optional constant that indicates which scope needs to be set.
DEFINE | Description |
---|
SCOPE_TOP | The top scope. |
SCOPE_BOTTOM | The bottom scope. |
SCOPE_BOTH | The 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:
Parameter | Return value |
---|
no parameter | Returns .T. (true) if a scope is defined, and .F. when no scope is defined. |
SCOPE_TOP | Returns the top scope value, or NIL if no top scope is set. |
SCOPE_BOTTOM | Returns 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