home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / 32SNIPIT.PAK / INPUT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  8.5 KB  |  213 lines

  1. // BDE32 3.x - (C) Copyright 1996 by Borland International
  2.  
  3. // input.c
  4. #include "snipit.h"
  5.  
  6. // Prototype the function pointers here...
  7.  
  8. void AddAlias(void);
  9. void Aliases(void);
  10. void BatchMove(void);
  11. void BlobIO(void);
  12. void Block(void);
  13. void BookMark(void);
  14. void Configuration(void);
  15. void CreateAndFillSampleTXT(void);
  16. void CreateAndFillSamplePX(void);
  17. void CreateAndFillSampleDB(void);
  18. void CreateAndFillInMemoryTbl(void);
  19. void DatabaseIOSample(void);
  20. void DriverCaps(void);
  21. void ErrVal(void);
  22. void FiltComp(void);
  23. void FiltCont(void);
  24. void Filter(void);
  25. void Format(void);
  26. void IndexDBase(void);
  27. void IndexExpr(void);
  28. void IndexPDox(void);
  29. void InitEngSample(void);
  30. void InputReqCallback(void);
  31. void KeyUpdate(void);
  32. void LangDriver(void);
  33. void LiveSQL(void);
  34. void LnkCrsr(void);
  35. void LocalSQL(void);
  36. void LocalSQLJoin(void);
  37. void LoginCallback(void);
  38. void Navigate(void);
  39. void OptParam(void);
  40. void OptionalDBParam(void);
  41. void ParadoxSort(void);
  42. void Password(void);
  43. void QBE(void);
  44. void QBE2(void);
  45. void Range(void);
  46. void RdoLock(void);
  47. void RecLock(void);
  48. void RecordUpdate(void);
  49. void RefInteg(void);
  50. void SecDesc(void);
  51. void SessionIO(void);
  52. void SimpleBlobIO(void);
  53. void SoftDel(void);
  54. void SQLBind(void);
  55. void SQLTran(void);
  56. void StoredProcedures(void);
  57. void SysInfo(void);
  58. void TableList(void);
  59. void TableOpen(void);
  60. void TableSearch(void);
  61. void TBFieldMap(void);
  62. void TblInfo(void);
  63. void TblLock(void);
  64. void TBRestructureCallBack(void);
  65. void TBRestructure(void);
  66. void TextExport(void);
  67. void TextImport(void);
  68. void Test(void);
  69. void UpdateCurrent(void);
  70. void UpSize(void);
  71. void ValCheck(void);
  72.  
  73. // Data for the code viewer.
  74.  
  75. VIEW_INPUT  far InputData[MAX_VIEW_CODE_MODULES] =
  76. {   // Code Name                             FuncPtr               File Name
  77.     // ID for Desc
  78.       {"Field: Using simple BLOBs",          SimpleBlobIO,         "Blobsmpl.c",
  79.        IDS_SIMPLE_BLOB_IO},
  80.       {"Field: Using BLOBs",                 BlobIO,               "Blobio.c",
  81.        IDS_BLOB_IO},
  82.       {"Record: Block Operations",           Block,                "Block.c",
  83.        IDS_BLOCK},
  84.       {"Cursor: Using BookMarks",            BookMark,             "Bookmark.c",
  85.        IDS_BOOKMARK},
  86.       {"Environment: Alias (Info)",          Aliases,              "Aliases.c",
  87.        IDS_ALIASES},
  88.       {"Environment: Alias (Adding, Deleting)",AddAlias,             "AddAlias.c",
  89.        IDS_ADDDELALIAS},
  90.       {"Environment: Configuration info",    Configuration,        "Config.c",
  91.        IDS_CONFIG},
  92.       {"Index: dBASE",                       IndexDBase,           "Idxdbase.c",
  93.        IDS_INDEX_DBASE},
  94.       {"Index: Paradox",                     IndexPDox,            "Idxpdox.c",
  95.        IDS_INDEX_PDOX},
  96.       {"Index: dBASE Expression",            IndexExpr,            "Idxexpr.c",
  97.        IDS_INDEX_EXPR},
  98.       {"Database: Opening and closing",      DatabaseIOSample,     "Dbio.c",
  99.        IDS_DB_IO},
  100.       {"Environment: Init & Connect",        InitEngSample,        "InitEng.c",
  101.        IDS_INIT_ENG},
  102.       {"Errors: Getting error info",         ErrVal,               "Errval.c",
  103.        IDS_ERR_VAL},
  104.       {"Table: Mapping and reading",         TBFieldMap,           "Fieldmap.c",
  105.        IDS_FLD_MAP},
  106.       {"Cursor: Filter (Basic)",             Filter,               "Filter.c",
  107.        IDS_FILTER},
  108.       {"Cursor: Filter (Compare)",           FiltComp,             "FiltComp.c",
  109.        IDS_FILTCOMP},
  110.       {"Cursor: Filter (Continue)",          FiltCont,             "FiltCont.c",
  111.        IDS_FILTCONT},
  112.       {"Locking: Table",                     TblLock,              "TblLock.c",
  113.        IDS_TBLLOCK},
  114.       {"Locking: Directory",                 RdoLock,              "RdoLock.c",
  115.        IDS_RDOLOCK},
  116.       {"Locking: Record",                    RecLock,              "RecLock.c",
  117.        IDS_RECLOCK},
  118.       {"Query: Basic Example",               QBE,                  "QBE.c",
  119.        IDS_QBE},
  120.       {"Query: Join dBASE and PDOX",         QBE2,                 "QBE2.c",
  121.        IDS_QBE2},
  122.       {"Cursor: Ranges",                     Range,                "Range.c",
  123.        IDS_RANGE},
  124.       {"Session: Session I/O" ,              SessionIO,            "Session.c",
  125.        IDS_SESSION_IO},
  126.       {"Table: Sorting a table",             ParadoxSort,          "Prdxsort.c",
  127.        IDS_SORT},
  128.       {"Query: Local SQL - simple",          LocalSQL,             "LSQL.c",
  129.        IDS_LOCALSQL},
  130.       {"Query: Table join using SQL",        LocalSQLJoin,         "LSQLJoin.c",
  131.        IDS_LOCALSQLJOIN},
  132.       {"Query: SQL Parameter Binding",       SQLBind,              "Sqlbind.c",
  133.        IDS_SQLBIND},
  134.       {"Query: Using Stored Procedures",     StoredProcedures,     "StorProc.c",
  135.        IDS_STORPROC},
  136.       {"Query: Keyed Updates",               KeyUpdate,            "KeyUpdt.c",
  137.        IDS_KEYUPDT},
  138.       {"Query: Update ... Where current",    UpdateCurrent,        "Updtcrnt.c",
  139.        IDS_UPDTCRNT},
  140.       {"Environment: System Info",           SysInfo,              "SysInfo.c",
  141.        IDS_SYSINFO},
  142.       {"Table: Copying records",             BatchMove,            "BatMove.c",
  143.        IDS_BATCH},
  144.       {"Table: Create dBASE",                CreateAndFillSampleDB,"Cr8DbTbl.c",
  145.        IDS_CR8DBTBL},
  146.       {"Table: Create Paradox",              CreateAndFillSamplePX,"Cr8PxTbl.c",
  147.        IDS_CR8PXTBL},
  148.       {"Table: Create Text",                 CreateAndFillSampleTXT,"Cr8TxTbl.c",
  149.        IDS_CR8TXTBL},
  150.       {"Table: Getting table info",          TblInfo,              "TblInfo.c",
  151.        IDS_TBLINFO},
  152.       {"Cursor: Linking cursors",            LnkCrsr,              "LnkCrsr.c",
  153.        IDS_LNKCRSR},
  154.       {"Cursor: Navigating",                 Navigate,             "Navigate.c",
  155.        IDS_NAVIGATE},
  156.       {"Table: Password",                    Password,             "Password.c",
  157.        IDS_PASSWORD},
  158.       {"Table: Restructure",                 TBRestructure,        "Tbrstrct.c",
  159.        IDS_RESTRUCTURE},
  160.       {"Cursor: Search for key",             TableSearch,          "Search.c",
  161.        IDS_SEARCH},
  162.       {"Cursor: Soft delete",                SoftDel,              "SoftDel.c",
  163.        IDS_SOFTDEL},
  164.       {"Environment: Drivers",               DriverCaps,           "DrvCaps.c",
  165.        IDS_DRVCAPS},
  166.       {"Transactions: Creating",             SQLTran,              "Transact.c",
  167.        IDS_SQLTRAN},
  168.       {"Query: SQL DynaSet",                 LiveSQL,              "Lsqllive.c",
  169.        IDS_LIVESQL},
  170.       {"Table: Referential Integrity",       RefInteg,             "RefInteg.c",
  171.        IDS_REFINTEG},
  172.       {"Table: Validity Checks",             ValCheck,             "ValCheck.c",
  173.        IDS_VALCHECK},
  174.       {"Table: Password (Auxillary)",        SecDesc,              "SecDesc.c",
  175.        IDS_SECDESC},
  176.       {"Table: dBASE Security",              LoginCallback,        "DbLogin.c",
  177.        IDS_LOGIN},
  178.       {"Table: Tables with Missing files",   InputReqCallback,     "InputReq.c",
  179.        IDS_INPUTREQ},
  180.       {"Table: DB Optional Parameters",      OptionalDBParam,      "OptDBPar.c",
  181.        IDS_OPTDBPARAM},
  182.       {"Table: Optional Parameters",         OptParam,             "OptParam.c",
  183.        IDS_OPTPARAM},
  184.       {"Table: Open",                        TableOpen,            "TblOpen.c",
  185.        IDS_TBLOPEN},
  186.       {"Environment: Date and Time Format",  Format,               "Format.c",
  187.        IDS_FORMAT},
  188.       {"Record: Add, update, delete",        RecordUpdate,         "RecUpdat.c",
  189.        IDS_RECUPDAT},
  190.       {"Test: Framework for Testing",        Test,                 "Test.c",
  191.        IDS_TEST},
  192.       {"Table: Importing Text files",        TextImport,           "TextImp.c",
  193.        IDS_TEXTIMP},
  194.       {"Table: Exporting Text files",        TextExport,           "TextExp.c",
  195.        IDS_TEXTEXP},
  196.       {"Table: List",                        TableList,            "TblList.c",
  197.        IDS_TBLLIST},
  198.       {"Table: Create In-Memory",            CreateAndFillInMemoryTbl,"Inmemtbl.c",
  199.        IDS_INMEMTBL},
  200.       {"Session: CallBacks",                 TBRestructureCallBack,"Callback.c",
  201.        IDS_CALLBACK},
  202.       {"Environment: Language Drivers",      LangDriver,           "Langdrv.c",
  203.        IDS_LANGDRV},
  204.       {"Table: Upsizing",                    UpSize,               "Upsize.c",
  205.        IDS_UPSIZE},
  206. #ifdef DEBUG
  207.       {"Run All",                            NULL,                 "",
  208.        (UINT16)-1},
  209. #endif
  210.       {"",                                   NULL,                 "",
  211.        (UINT16)-1},
  212. };
  213.