[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scddfput(
           signed int handle,
           signed int fieldno,
           void *data );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scddfput will convert data from 'c' format to dBASE format and
   place it in the proper field fieldno of the record I/O buffer.

   dBASE field type   returned data type
     'C'                signed char *
     'D'                signed char [9]
     'F'                double (dBASE IV)
     'L'                signed char
     'M'                unsigned long
     'N'                double

NOTES
   Fields are numbered from zero (0).

   scddfput uses the global variable sc_date_style to control date
   string formatting. The initial value of this variable is SC_GREGOR.

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

   void main()
   {
     int dbf;
     double length = 1200.0L, attribute = 1.0L;
     long recno;

     scdinit(20,0);
     if (scddopenx(&dbf,"TOC.DBF",0) == SC_SUCCESS) {
       scddfput(dbf,0,"ABC.XYZ");
       scddfput(dbf,1,&length);
       scddfput(dbf,2,"07/21/90");
       scddfput(dbf,3,"20:01:45");
       scddfput(dbf,4,&attribute);
       scddrput(dbf,&recno,SC_ADD);
       scddclose(dbf);
     }
     scdterm();
   }

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