CoreDb.Sort Method | |
Copy records to a database file in sorted order.
Namespace:
XSharp
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax 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
)
Request Example
View SourceParameters
- nDest
- Type: DWord
The work area number for the target Workarea. - fieldNames
- Type: _FieldNames
The field names to write specified as an _FieldNames object. - uCobFor
- Type: ICodeblock
A code block that defines a condition that each record within the scope must meet in order to be processed.
- uCobWhile
- Type: ICodeblock
A code block that defines another condition that each record must meet in order
to be processed.
As soon as a record is encountered that causes the condition to fail, the operation
terminates.
If no scope is specified, cbWhileCondition changes the default scope to lRest.
You define the scope using one of these three, mutually exclusive arguments.
The default is all records.
- nNext
- Type: Object
The number of records to append, starting at the current record. - nRecno
- Type: Object
The number of the record to append. - lRest
- Type: Logic
TRUE processes only records from the current record to end-of-file. FALSE processes all records. - sortNames
- Type: _FieldNames
The sort keys, specified as an _FieldNames object.
Return Value
Type:
LogicTRUE if successful; otherwise, FALSE.
See Also