[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scddinfo(
           signed int handle,
           SC_DBFINFO *info );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scddinfo returns an information structure (SC_DBFINFO) for the
   file associated with handle.

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

   void main()
   {
     int dbf;
     SC_DBFINFO info;

     scdinit(20,0);
     if (scddopenx(&dbf,"TOC.DBF",0) == SC_SUCCESS) {
       scddinfo(dbf,&info);
       puts(info.fname);
       if (info.style == SC_DB3)
         puts("dBASE III data file");
       else {
         puts("dBASE IV data file");
         if (info.memo)
           puts("memo file attached");
         else
           puts("no memo file attached");
         if (info.mdx)
           puts(".MDX file used")
         else
           puts("No .MDX file used");
         if (info.trans)
           puts("Transaction in progress");
         if (info.encrypt)
           puts("File encrypted");
       }
       scddclose(dbf);
     }
     scdterm();
   }

See Also: scddopenx
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson