FILEFLEX API REFERENCE



NAME
DBCreateIndex -- Create an index file

SYNTAX
DBCreateIndex(index-file, num-tags, tags, overwrite-flag)

CATEGORY
Using Index Files

DESCRIPTION
THIS FUNCTION HAS CHANGED IN FILEFLEX 3.0

Use the DBCreateIndex function to create a brand-new index file.

Here's the format for a tag record:

tagname,index-expr,filter-expr,order,uniq-flag

Order must be 'A' for ascending or 'D' for descending. If filter-expr is "0", then no filter is applied. There can be any number of tags per index file (separated by newlines), allowing for lots of complex orderings. The new indexes allow for complex filtering operations, uniqueness, and more.

DBCreateIndex has an overwrite flag that's "true" or "false" (true if you don't want FileFlex to overwrite an existing index file).


NOTES
FileFlex 3 no longer supports the Database Designer movie. If you attempt to use the old FileFlex 2 Database Designer to create indexes, you'll get incompatible files. The best approach to creating accurate indexes is to use FoxPro.


SEE ALSO
DBCreate, DBCreateAuto

INTERNAL FUNCTION NUMBER
31


Copyright © 1992-1998 by David Gewirtz, under license to Component Enterprises, Inc.
Contact: info@component-net.com

Casa de Bender