ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Managing xBase files / WLanguage functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
HDBSortType (Function)
In french: HDBTypeTri
Native Connectors (Native Accesses)HFSQL ClassicAvailable only with these kinds of connection
Returns or modifies the sequence of text items in the xBase files.
Example
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:
hDBASCIISort according to ASCII order.
hDBLexicographicLexicographic sort.
<Type of sort>: Constant
Type of sort to use:
hDBASCII
(Default value)
Sort according to ASCII order.
hDBLexicographicLexicographic sort.

Finding out the order sequence Hide the details

<Result> = HDBSortType()
<Result>: Constant
Type of order currently used:
hDBASCII
(Default value)
Sort according to ASCII order.
hDBLexicographicLexicographic 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.
Component: wd290hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help