[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scddrput(
           signed int handle,
           signed long *recno,
           signed int howto );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scddrput will write the data record specified by recno to the data
   file associated with handle from the internal record buffer. howto
   determines how the data record is to be written:

   howto =        action
     SC_ADD         append to end of file
     SC_UPDATE      update current record

   If a record update is occurring the data record number passed in recno
   will be written in the disk file.

   Use scddrget to load a data record or scddfput or scddfputs to
   fill the data record field by field.

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: scddfput scddfputs scddrget
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson