xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

SET AUTORDER

Defines the default controlling index for automatically opened index files.

Syntax

SET AUTORDER TO <nOrder>

Arguments

<nOrder>
This is a numeric value specifying the ordinal position of the index to select as the controlling index when SET AUTOPEN is set to ON. The default is zero.

Description

When SET AUTOPEN is set to ON and the RDD supports automatic opening of structural indexes, the SET AUTORDER command specifies the index to activate as the controlling index. The default value for <nOrder> is zero, i.e. no controlling index is activated when an index file is automatically opened with the USE command. In this case, records of the database are accessible in physical order in the work area.

Note:  refer to SET AUTOPEN for an example of automatic selection of the controlling index.

Info

See also:OrdSetFocus(), Set(), SET AUTOPEN, SET AUTOSHARE, USE
Category: Database commands , SET commands , xHarbour extensions
Source:rtl\set.c
LIB:xhb.lib
DLL:xhbdll.dll


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