CodeBase Database Tools For Programmers
Search   
Advanced Search
products   order   consulting   reviews   downloads   links   support   contact   about us    home  
• Products Home

• Product Comparison

• Windows & .NET
  - C/C++, C++.NET, C#
  - Visual Basic, VB.NET
  - Delphi
• Windows CE
• SQL 2.0 for Windows
  - ADO / ADO .NET
  - ODBC
• Linux
• UNIX
• Java
• Java - JDBC/SQL
• Kylix
• Mac, DOS, Excel,
  PowerBASIC,
  Perl, Python

• CodeBase Subscription
• File System
• 64-bit Support
• VCL Components
  - C++ Builder
  - Delphi
• CodeBase File Utility
• RapidSort
• CodeBase File System
• 3rd Party Tools
CodeBase

C++ Example and Function List

C++ Example:

// List the MAILING.DBF data file ordered alphabetically by last name.
#include "d4all.hpp"

void main(void)   {
  Code4 codeBase;                           // Initialize CodeBase
  Data4 mailing(codeBase, "MAILING");       // Open MAILING.DBF
  Tag4 lastName(mailing, "LAST");           // Define an index tag object

  mailing.select(lastName);                 // Select Last Name ordering
  mailing.top();                            // Go to top of mailing file

  while(! mailing.eof())   {
    cout << "\n" << mailing.recNo() << " "; // Display the record number

    // For each field in the mailing file.
    for (int j = 1; j <= mailing.numFields(); j++)   {
      Field4 field(mailing, j);
      cout << field.str() << " ";         // Display each field’s contents
    }

    mailing.skip();                       // Skip to the next record
  }
  mailing.close();
}

CodeBase C++ Method List

Here are just a few of the 300 fully documented CodeBase C++ methods:

Data File Methods

append eof lockFile reccount top
blank field lockGroup recno unlock
bottom flush numFields record write
close go open reindex zap
create index pack seek  
data lock position skip  
delete lockAppend recall tagSelect  

Field Methods

assign changed lower number trim
assignDouble decimals maximum ptr true
assignField len name str type
assignLong lockCheck ncpy substr upper

Index File Methods

close data init open tag
create fileName isValid reindex tagAdd

Linked List Methods

add addAfter addBefore first init last
numNodes next pop prev remove  

Query & Join Methods

bottom errorAction lockAddquerySet skip sortSet
changed init master skipEnable top

Logging and Transaction Methods

connect logFileName logOpenOff tranRollback tranStart
logCreate logOpen tranCommit tranStart tranStatus

Sequiter Inc.