Returns or modifies the sequence of text items in the xBase files.
nSortType is int
// Retrieves the sort order
nSortType = HDBSortType()
// Changes the type of sort
SWITCH nSortType
CASE hDBASCII: Info( "ASCII sort" )
CASE hDBLexicographic
HDBSortType(hDBASCII)
Info( "Lexicographic sort changed to ASCII sort" )
OTHER CASE
Info("Error: Unknown sort")
END
Syntax
Modifying the order sequence Hide the details
<Result> = HDBSortType(<Type of sort>)
<Result>: Constant
Type of sort order used before changing the order: | |
hDBASCII | Sort according to ASCII order. |
hDBLexicographic | Lexicographic sort. |
<Type of sort>: Constant
Type of sort to use: | |
hDBASCII (Default value) | Sort according to ASCII order. |
hDBLexicographic | Lexicographic sort. |
<Result>: Constant
Type of order currently used: | |
hDBASCII (Default value) | Sort according to ASCII order. |
hDBLexicographic | Lexicographic sort. |
Remarks
- This function is not available when using a database via Remote Access.
- This function is not available when using a stand-alone executable.