home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c160 / 1.ddi / EXAMPLES / E4BROWSE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-22  |  1.6 KB  |  54 lines

  1.  
  2.  
  3. #include "d4base.h"
  4. #include "w4.h"
  5.  
  6. main( int argc, char **argv )
  7. {
  8.    int i ;
  9.  
  10.    /* This explicit initialization call is to make Code Base 4.2 use less
  11.       memory than it otherwise would. */
  12.    d4initialize( 1, 3, 50, 1000, 0L ) ;
  13.    w4clear(-1) ; /* Clear the screen. */
  14.  
  15.    if ( argc <= 1 )
  16.    {
  17.       w4display( " How to Run Browse ",
  18.          "BROWSE  Database_File [Index_File] [Index_File] ...",
  19.                  "",
  20.                  #ifdef CLIPPER
  21.                  "This version uses Clipper NTX files.",
  22.                  #else
  23.                  "This version uses dBASE NDX files.",
  24.                  #endif
  25.                  "",
  26.                  "BROWSE was written using Code Base 4.2.  Code Base 4.2",
  27.                  "is a C library for database and screen management.  It",
  28.                  "is used by C programmers to create applications compatible",
  29.                  "with the data, index and memo files of dBASE or Clipper.",
  30.                  "",
  31.                  "For more information, you may call, phone or fax:",
  32.                  "",
  33.                  "   Sequiter Software Inc.",
  34.                  "   PO Box 5659, Station L",
  35.                  "   Edmonton, Alberta",
  36.                  "   Canada  T6C 4G1",
  37.                  "",
  38.                  "   Call (403) 448-0313",
  39.                  "   Fax  (403) 448-0315",
  40.          (char *) 0 ) ;
  41.        w4exit(1) ;
  42.    }
  43.  
  44.    if ( d4use( argv[1] ) < 0 )  w4exit(1) ;
  45.  
  46.    for ( i=2; i<argc; i++ )
  47.       i4open( argv[i] ) ;
  48.  
  49.    b4browse( b4quick_browse, b4quick_edit ) ;
  50.  
  51.    d4close_all() ;
  52.    w4exit(0) ;
  53. }
  54.