CoreDb.Sort 方法 | |
Copy records to a database file in sorted order.
命名空间:
XSharp
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 STATIC METHOD Sort(
nDest AS DWORD,
fieldNames AS _FieldNames,
uCobFor AS ICodeblock,
uCobWhile AS ICodeblock,
nNext AS Object,
nRecno AS Object,
lRest AS LOGIC,
sortNames AS _FieldNames
) AS LOGIC
public static bool Sort(
uint nDest,
_FieldNames fieldNames,
ICodeblock uCobFor,
ICodeblock uCobWhile,
Object nNext,
Object nRecno,
bool lRest,
_FieldNames sortNames
)
查看代码参数
- nDest
- 类型:UInt32
The work area number for the target Workarea. - fieldNames
- 类型:_FieldNames
The field names to write specified as an _FieldNames object. - uCobFor
- 类型:ICodeblock
定义范围内每条记录必须满足的条件的代码块。
- uCobWhile
- 类型:ICodeblock
定义每条记录必须满足的另一个条件的代码块。
一旦遇到导致条件失败的记录,操作就会终止。
如果未指定范围,cbWhileCondition 将默认范围更改为 lRest。
您可以使用这三个互斥参数之一来定义范围。
默认为所有记录。
- nNext
- 类型:Object
The number of records to append, starting at the current record. - nRecno
- 类型:Object
The number of the record to append. - lRest
- 类型:Boolean
TRUE processes only records from the current record to end-of-file. FALSE processes all records. - sortNames
- 类型:_FieldNames
The sort keys, specified as an _FieldNames object.
返回值
类型:
BooleanTRUE if successful; otherwise, FALSE.
参见