$FUNCNAME$
  DBSETORDER()
$CATEGORY$
  DATABASE
$SUMMARY$
   Set the controlling order
$LANG_RU$
     .
$SYNTAX$
     DBSETORDER(<nOrderNum>) --> NIL
$LANG_RU$
     DBSETORDER( <  > ) --> NIL
$ARGUMENTS$
     <nOrderNum> is a numeric value that specifies which of the active
     indexes is to be the controlling index.
$LANG_RU$
     <  > -  ,  ,
           .
$RETURNS$
     DBSETORDER() always returns NIL.
$LANG_RU$
     DBSETORDER()   NIL.
$DESCRIPTION$
     DBSETORDER() controls which of the current work area's active indexes is
     the controlling index.  The controlling index is the index which
     determines the logical order of records in the work area.

     Active indexes are numbered from 1 to the number of active indexes,
     based on the order in which the indexes were opened.  <nOrderNum>
     specifies the number of the desired index.

     DBSETORDER() performs the same function as the standard SET ORDER
     command.  For more information, refer to the SET ORDER command.
$LANG_RU$
     DBSETORDER() ,      
        .   - 
     ,       .

         1    
     ,  ,      . <
      >    .

     DBSETORDER()    ,    
     SET ORDER.       SET ORDER.
$EXAMPLES$
       This example sets the second named index, Age, as the
	controlling index:

	USE Employee NEW
	SET INDEX TO Name, Age
	DBSETORDER(2)
$LANG_RU$
	  USE Employees NEW
	  SET INDEX TO Name, Age
	  DBSETORDER(2)
$SEEALSO$
  DBCLEARINDEX(),DBCREATEINDEX(),DBREINDEX(),DBSETINDEX()
$END$
