$FUNCNAME$
  DBCREATEINDEX()
$CATEGORY$
  DATABASE
$SUMMARY$
   Create an index file
$LANG_RU$
     
$SYNTAX$
     DBCREATEINDEX(<cIndexName>, <cKeyExpr>,
	[<bKeyExpr>], [<lUnique>]) --> NIL
$LANG_RU$
     DBCREATEINDEX( <  >,< >
	     ,[< >],[< >] ) --> NIL
$ARGUMENTS$
     <cIndexName> is a character value that specifies the file name of
     the index file to be created.

     <cKeyExpr> is a character value that expresses the index key
     expression in textual form.

     <bKeyExpr> is a code block that expresses the index key expression
     in executable form.

     <lUnique> is an optional logical value that specifies whether a
     unique index is to be created.  If <lUnique> is omitted, the current
     global _SET_UNIQUE setting is used.
$LANG_RU$
     <  > -  ,   
       .

     < > -  ,  
         .

     < > -   ,   
         .

     < > -   , 
     ,       
     .  < > ,  
     ,   SET   _SET_UNIQUE.
$RETURNS$
     DBCREATEINDEX() always returns NIL.
$LANG_RU$
     DBCREATEINDEX()   NIL.
$DESCRIPTION$
     DBCREATEINDEX() creates an index for the database (.dbf) file associated
     with the current work area.  If the work area has active indexes, they
     are closed.  After the new index is created, it becomes the controlling
     index for the work area and is positioned to the first logical record.

     DBCREATEINDEX() performs the same function as the standard INDEX
     command.  For more information, refer to the INDEX command.
$LANG_RU$
     DBCREATEINDEX()      ,  
       .       
      ,   .  ,   
      ,       ,
            .

     DBCREATEINDEX()    ,    
     INDEX.       INDEX.
$EXAMPLES$
       This example creates an index file, Name, indexed on the Name
	field:

	USE Employees NEW
	DBCREATEINDEX( "Name", "Name", { || Name })
$LANG_RU$
	  USE Employees NEW
	  DBCREATEINDEX( "Name","Name")
$SEEALSO$
  DBCLEARINDEX(),DBREINDEX(),DBSETINDEX(),DBSETORDER(),AFIELDS(),DBSTRUCT()
$END$
