DbSetDescend Function | |
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
public static bool DbSetDescend(
bool lNewDescend
)
Request Example
View SourceParameters
- 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:
LogicThe 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 |
---|
Not all RDDs support switching the order at runtime |
See Also