Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SoftC Database Library v2.1 Guide - usage http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   int scdcindex(
           int datafile,
           char *filename,
           int keytype,
           char *keyexpr,
           int keylen,
           int decpl );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdcindex will create and build a Clipper index file. An empty file
   will be created using filename, keytype, keyexpr, keylen,
   and decpl. The resultant file will be opened, and the datafile
   will be read sequentially building keys from each data record. The index
   file will be closed at exit. The datafile must be open prior to the
   function call.

EXAMPLE
   #include <softc.h>
   #include <sc_base.h>

   void main()
   {
     int dbf;

     scdinit(20,0);
     if (scddopenx(&dbf,"TOC.DBF",SC_BUFFER) == SC_SUCCESS) {
       scdcindex(dbf, "TOCNAME.NTX", SC_CKEY, "NAME", 64, 0);
       scddclose(dbf);
     }
     scdterm();
   }

See Also: scdccreate

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson