[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int scdtopenx(
           signed int *handle,
           signed char *filename,
           signed int command );

PROTOTYPE IN
   sc_base.h

DESCRIPTION
   scdtopenx opens a memo file. Memory will be allocated for a file packet
   and I/O buffers for use internally by the library file manager. The memo
   file will be tested as much as possible to insure that it is a legitimate
   dBASEIII+ memo file.

   The file will be opened under control of the command parameter. Using
   SC_RDWR opens the file for both read and write access. SC_RDONLY
   overrides SC_RDWR and causes the file to be opened for read access
   only. Any attempt to write to a read only file will result in an error
   (SC_READOLY).

   Using SC_EXCLUDE opens the file for exclusive use of this station
   (single user). SC_SHARED overrides SC_EXCLUDE and opens the file
   in multi-user mode. This mode is used when a LAN file is to be shared with
   other stations.

   SC_BUFFER is not used.

   command = 0 is equivalent to SC_EXCLUDE | SC_RDWR.


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

   void main()
   {
     int dbt;

     scdinit(20,0);
     if (scdtopenx(&dbt,"TOC.DBT",SC_SHARED) == SC_SUCCESS)
       scdtclose(dbt);
     scdterm();
   }

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