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 scdccreate(
           char *filename,
           int keytype,
           char *keyexpr,
           int keylen,
           int decpl );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdccreate creates an empty Clipper index file. keyexpr will be
   translated to all upper case when the index file is created.

   If keytype is SC_CKEY, then keyexpr must be an ASCIIZ string
   consisting of one or more field names from the data record. All fields
   included in the expression must be of type 'c' or be translated into type
   'c'. No check is made to verify this. keylen cannot exceed 100.

   If keytype is SC_NKEY, then keyexpr should consist of only one
   data field. keylen cannot exceed 19, and decpl must be 2 less than
   keylen and not more than 15.

   If keytype is SC_DKEY, then keyexpr should consist of only one
   data field. keylen and decpl are ignored as the length is forced
   to 8.

   When unique keys are required, OR SC_UNIQUE with keytype.

NOTES
   scdccreate will create a new index file even if one had already
   existed.

   keyexpr IS NOT checked for validity during the file creation
   process. Currently only the scdckmake function uses keyexpr.

EXAMPLE
   #include <sc_base.h>

   void main()
   {
     scdinit(20,0);
     scdccreate("TOCNAME.NTX", SC_DKEY,"name", 64, 0);
     scdterm();
   }

See Also: scdckmake

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