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 scdiknum(
            char *key,
            double value );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdiknum will translate a 'C' double value to a FoxBASE+ numeric
   key.

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

   void main()
   {
     int dbf, idx;
     long recno;
     char key[8]
     double length = 123.67L
     scdinit(20,0);
     if (scddopenx(&dbf, "TOC.DBF",0) == SC_SUCCESS) {
       if (scdiopenx(&idx, "TOCLNGTH.IDX", SC_BUFFER) == SC_SUCCESS) {
         scddfput(dbf,1,&length);
         if (scddrput(dbf,&recno,SC_ADD) == SC_SUCCESS) {
           scdiknum(key,length);
           scdikadd(idx,key,recno);
         }
         scdiclose(idx);
       }
       scddclose(dbf)
     }
     scdterm();
   }

See Also: scdicreate scdikdate scdikmake

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