Click here to Skip to main content
15,897,518 members
Articles / Programming Languages / C++

dBase Explorer

Rate me:
Please Sign up or sign in to vote.
2.42/5 (26 votes)
13 Jun 20025 min read 137.8K   2.6K   34   25
A Utility to Explore dBase, FoxPro and xBase Databases

Introduction

This is a universal utility program capable of browsing dBase, FoxPro and xBase database tables of any structure. This utility program may be helpful for dBase, FoxPro and xBase database users as well as developers. All the information of the database, including dBase version, creation date, table structure, browsing data, query etc. are available to the user at a finger tip. The table data can be exported to universal database format for conversion to any database (MS Access, Excel, Oracle, Informix, Sybase) or HTML format for publishing on the world wide web. Data can be sorted based on any column and in order (ascending or descending). Any column can be dragged and dropped near another column.

Step-by-Step Illustration:

Opening Screen

Image 1

This program is toolbar-driven. The above figure shows all available functionality. Placing the mouse on any icon will invoke a balloon-type detail help. Before using any of the functionality, you have to open a dBase file by clicking on the Open icon. Once the dBase file is open, any of the functionality may be invoked by clicking on the desired icon. For example, the Table icon may be clicked to get table information or Column icon may be clicked to get table structure and so on.

Clicking the Open icon, the following screen appears to open a dBase file:

Image 2

Now you can browse through the directory and select a DBF file.

View Database Table Information

  • dBase version information
  • Date created
  • Total number of records in the database table
  • Total number of columns in the table
  • Record length

Clicking on the Table icon will invoke the following screen:

Image 3

This screen shows that the customer table was created by dBase version III on Feb. 18, 1999. The total number of records in the table is 33. The table has 8 columns.

dBase Table Column View

  • dBase table column name
  • Column type
  • Column length
  • Precision

Clicking on the Column icon will invoke the following screen:

Image 4

This screen shows the customer table structure, column definition, name, type, length and precision. You can click on any column header to sort in ascending or descending order. The first click will order the column in ascending order; the second click will order in descending order. Additionally, you can drag and drop any column to any desired place.

Browsing Data

  • Table of any structure can be viewed
  • View table data just by a single click on the Data icon
  • Sort data based on any column
  • Drag and drop column to any desired place

Clicking on the Data icon will invoke the following screen:

Image 5

This screen shows the data in the customer table. You can click on any column header to sort in ascending or descending order. The first click will order the column data in ascending order; the second click will order in descending order. Additionally, you can drag and drop any column to any desired place. This feature is very handy to compare data between two columns. Here is an example of drag and drop: the phone_num column is dragged and dropped near to the name column.

Image 6

The above figure shows that the phone_num column is brought side-by-side with name. The advantage of drag and drop is that you do not need to scroll right to find the phone_num for each name if you need to find phone_num for each name. As a database user and developer, I had to do that frequently. At that time, I wished I could bring them together. Now it is a reality that we can bring two columns together.

Seamless Integration: Export Data to Any Desired Format

  • HTML format
  • Excel spreadsheet
  • Excel *.cvs format
  • ASCII text, comma-delimited

Clicking on the Export icon will invoke the following screen:

Image 7

Depending on the option, all records or only the first 100 records or the records containing the specified string may be exported to HTML, Excel or comma-delimited ASCII text file. The comma delimited file may be converted to any database format. The HTML file is ready to post on the world wide web. Here is an example of an HTML file created by dBase Explorer:

Image 8

Query

  • Query based on any column

This is a universal data browser. It is capable of browsing data of any table structure. In fact, we do not know the table structure in advance. So the program will search the search string in all columns. If it finds the search string in any of the columns, it will display the record. The following screens illustrate this feature.

Clicking on the Query icon will invoke the following screen:

Image 9

Here you can specify the search string. We have entered tx as the search string in the customer table. The program goes through all the records and if it finds any record containing tx, it will display the record. The following screen shows the result of the query tx:

Image 10

Sorting Data

  • Sort table data based on any column
  • Single click column header sort: first click ascending, second click descending.

Here is the result of sorting Name column in ascending order, by single clicking on the Name column header:

Image 11

Second clicking the Name column, sorting in descending order:

Image 12

Go to a Particular Record:

Sometimes it is necessary to view data from a particular record number, especially for large tables having records more than several million. Here you can specify the record number to go to and it will display 25 records from the specified starting record number. Clicking on the Query icon will invoke the following screen:

Image 13

It will display 25 records from the record number you specify here.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 1 Pin
Schehaider_Aymen18-Dec-12 4:50
Schehaider_Aymen18-Dec-12 4:50 
Question[My vote of 1] My vote : 0 - no source Pin
Wrangly19-Jul-11 1:42
Wrangly19-Jul-11 1:42 
GeneralAlmost a great tool Pin
dalb862312-Aug-10 10:03
dalb862312-Aug-10 10:03 
GeneralGood Pin
loyal ginger6-Oct-09 6:20
loyal ginger6-Oct-09 6:20 
GeneralxBase Engine Pin
Nigel Gibbons26-Dec-06 16:20
Nigel Gibbons26-Dec-06 16:20 
QuestionFile Relationships Pin
David G Smith5-Oct-05 16:52
sussDavid G Smith5-Oct-05 16:52 
QuestionWhere's the source !? Pin
balazs_hideghety5-Sep-05 21:57
balazs_hideghety5-Sep-05 21:57 
GeneralOther file types Pin
anonomous5-Sep-02 3:17
anonomous5-Sep-02 3:17 
GeneralExport formats Pin
17-Jun-02 5:15
suss17-Jun-02 5:15 
QuestionOnly 999 records ? Pin
13-Jun-02 21:51
suss13-Jun-02 21:51 
AnswerRe: Only 999 records ? Pin
Anonymous21-Mar-03 14:52
Anonymous21-Mar-03 14:52 
GeneralRoom for Improvement: Some hints Pin
KarstenK13-Jun-02 21:08
mveKarstenK13-Jun-02 21:08 
GeneralFiletypes Pin
17-May-02 2:46
suss17-May-02 2:46 
GeneralRe: Filetypes Pin
31-May-02 12:00
suss31-May-02 12:00 
GeneralRe: Filetypes Pin
31-May-02 12:01
suss31-May-02 12:01 
QuestionWhy such low ratings? Pin
Ed Gadziemski28-Apr-02 4:26
professionalEd Gadziemski28-Apr-02 4:26 
AnswerRe: Why such low ratings? Pin
Michael P Butler28-Apr-02 4:35
Michael P Butler28-Apr-02 4:35 
AnswerRe: Why such low ratings? Pin
David Wulff28-Apr-02 5:17
David Wulff28-Apr-02 5:17 
AnswerRe: Why such low ratings? Pin
Daniel Ferguson14-Jun-02 17:03
Daniel Ferguson14-Jun-02 17:03 
AnswerRe: Why such low ratings? Pin
JamieS26-Jan-04 2:17
JamieS26-Jan-04 2:17 
QuestionWhat is it written in? Pin
Michael P Butler28-Apr-02 3:57
Michael P Butler28-Apr-02 3:57 
AnswerRe: What is it written in? Pin
17-May-02 2:51
suss17-May-02 2:51 
GeneralRe: What is it written in? Pin
Michael P Butler17-May-02 7:42
Michael P Butler17-May-02 7:42 
GeneralRe: What is it written in? Pin
31-May-02 11:59
suss31-May-02 11:59 
GeneralRe: What is it written in? Pin
Jörgen Sigvardsson13-Jun-02 23:29
Jörgen Sigvardsson13-Jun-02 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.