xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DbSetOrder()

Selects the controlling index.

Syntax

DbSetOrder( <nIndexPos> ) --> NIL

Arguments

<nIndexPos>
This is the numeric ordinal position of the index to activate as the controlling index. Indexes are numbered in the sequence they are opened with OrdListAdd(), beginning with 1. The value 0 has a special meaning: it de-activates the controlling index while leaving it open. Records are navigated in physical order when <nIndexPos> is set to 0.

Return

The return value is always NIL.

Description

DbSetOrder() exists for compatibility reasons. It is superseded by OrdSetFocus().

Info

See also:DbClearIndex(), DbCreateIndex(), DbSetIndex(), OrdSetFocus(), SET ORDER
Category: Database functions , Index functions
Source:rdd\rddord.prg
LIB:xhb.lib
DLL:xhbdll.dll

Example

// refer to the OrdSetFocus() function for an example

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe