DbScope Function
|
|
Checks if a scope is set in a work area.
命名空间:
XSharp.RT
程序集:
XSharp.RT (在 XSharp.RT.dll 中) 版本:2.24 GA
Syntax FUNCTION DbScope(
uScope
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static Usual DbScope(
Usual uScope = default
) Request Example
查看代码Parameters
- uScope (Optional)
- 类型:Usual
An optional constant that indicates which scope needs to be set.
提供与记录处理命令的 ALL、REST 和 NEXT 子句相同的功能,用于处理的记录范围。
Return Value
类型:
Usual
返回值取决于传入的参数:
| parameter | 返回值 |
| no parameter | 如果定义了范围,则返回 .T.(true),否则返回 .F.(false)。 |
| SCOPE_TOP | 返回顶部范围的值,如果没有设置顶部范围,则返回 NIL。 |
| SCOPE_BOTTOM | 返回底部范围的值,如果没有设置底部范围,则返回 NIL。 |
| SCOPE_BOTH |
返回一个包含两个元素的数组,第一个元素是顶部范围,第二个元素是底部范围。
当没有设置范围时,数组中存储的是 NIL
|
See Also