点击或拖拽改变大小

CoreDb.OrdSetFocus 方法 (String, Object)

X#
Set the controlling order for a work area.

命名空间:  XSharp
程序集:  XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法
 STATIC METHOD OrdSetFocus(
	cBagName AS STRING,
	oOrder AS Object
) AS LOGIC
查看代码

参数

cBagName
类型:String
The name of an index file, including an optional drive and directory. Use this argument with <cOrder> to remove ambiguity when there are two or more orders with the same name in different index files.
oOrder
类型:Object
The name of the order or a number representing its position in the order list. Using the order name is the preferred method since the position may be difficult to determine using multiple-order index files. Invalid values are ignored.

返回值

类型:Boolean
TRUE if successful; otherwise, FALSE.
备注
This function is like DbSetOrder() but strongly typed. 这个函数,不会调用错误处理程序,因此如果失败,不会产生运行时错误消息或创建错误对象。 因此,检查返回值以确定函数是否成功是很重要的。

LastRddError 属性将包含关于发生的任何错误的必要信息。
参见