Click or drag to resize

DbSetDescend Function

X#
Reverses the navigational order of a work area.

Namespace:  XSharp.XPP
Assembly:  XSharp.XPP (in XSharp.XPP.dll) Version: 2.21
Syntax
 FUNCTION DbSetDescend(
	lNewDescend AS LOGIC
) AS LOGIC
Request Example View Source

Parameters

lNewDescend
Type: Logic
A logical value. When TRUE the navigational order in the current work area is set to descending, FALSE sets the order to ascending.

Return Value

Type: Logic
The return value of DbSetDescend() is the previous setting for DbSetDescend().
Remarks
The function DbSetDescend() is used to quickly change the order in a work area from ascending to descending and vice versa without the need to create a corresponding index. When TRUE is passed to the function, the order is reversed, i.e. all functions and commands that move the record pointer are inverted. DbGoTop() becomes DbGoBottom(), DbSkip(1) becomes DbSkip(-1), EOF becomes BOF() etc.
Tip Tip
Not all RDDs support switching the order at runtime
See Also