[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   void sceclr( void );

MACRO IN
   softc.h

DESCRIPTION
   sceclr is a macro which expands to "sc_code = SC_SUCCESS". The SoftC
   Database Library error flag (sc_code) will be cleared.

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

   void main()
   {
     int dbt;
     char data[512];
     long recno;

     scdinit(20,0);
     if (scdtopenx(&dbt,"TOC.DBT",SC_BUFFER) == SC_SUCCESS) {
       .
       .
       .
       scddclose(dbt);
     }
     else {
       sceclr();
       puts("File not found. Create? Y/N");
       if (getch() == 'Y')
         scdtcreate("TOC.DBT");
     }
     scdterm();
   }

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