DELPHI FileCheck component - version 1.0  - 23 April 1999
=========================================================

(C) 1999 Biets Freddy

This is a Delphi 4.0 component designed for 

	- Checking the structure of DB/DBF files
	- Rebuilding/Converting DB and DBF files/indexes
	- Packing
	- Reindexing
	- Rebuild indexes from scratch
	- Creating DB and DBF files from scratch

This can be done by letting this component build dbi-files 
(DataBase Ini) and distributing them along with your application. 
Place the dbi-file in the same directory as the exe-file.

This component is a TComponent descendant with just one extra method.

CheckFile(Filename, Pack, RebuildIndex, Newindex, RebuildFile, Newfile,
          CtrlStruct, MakeIni, Version, Programname, Prgbar, Busy).

All the procedures used in this component use low-level BDI-functions
whitch makes as fast as desktop files can get.

Filename : String
--------
This is the name of the DB/DBF file(s) to check. It can contain wildcards.
The extension of the files is important. Files with the extension .db 
will be treated as paradox-files. Files with the the extension .dbf 
will be treated as Dbase IV files. Full path must be provided.

Pack : Boolean
----
True to pack the file(s) named in 'filename'

Rebuildindex : Boolean
------------
True to Rebuild the index(es) from the files named in 'filename'.
This is a standard-reindex routine.

Newindex : Boolean
--------
This option deletes all existing indexes from a db/dbf file and 
rebuilds all indexes as described in the .DBI file. This option can
help you with an 'index out of date'-error.

Rebuildfile : Boolean
-----------
With this you can rebuild a DB/DBF-file. The file will be rebuild
according to the description from the DBI-file. If the structure
of the file was not the same as the structure described in the
DBI-file, the rules as stated in the CtrlStruct option will be used.

Newfile : Boolean
-------
This option delete all data in the DF/DBF-file and builds a new 
DB/DBF-file with a structure described in the DBI-file.

CtrlStruct : Boolean
----------
With this option the component will compare the structure of the
DB/DBF-file with the structure described in the DBI-file. If the
structure is not the same, the original BD/DBF-file will be converted
to the structure described in the DBI-file.
All data will be converted.
There is only one rule for this. Only for fields with the same name
the data will be recovered. With this component you can 
Add fields/indexes, Remove fields/Indexes, 
modify a field/indexes, but you cannot change the name of a field.
If you change the property of a field, you must be aware for what
you do. If you change the size of a field (make it smaller), you must
know that there could be a loss of data, because fields will be 
truncated. You are able to change a integer-field to a 
real or sting field, but changing a real field to an integer field
holds certain risks. THEREFORE ... ALWAYS MAKE BACKUPS FIRST !!!!
The component creates a backup-file named 'old'+filename and 
truncates this name to the format of 8.3. If something goes wrong
the component will try to restore the original file.. IT WILL TRY, 
SO IT COULD FAIL.

MakeIni : Boolean
-------
With this option a DBI-file will be created for every file stated 
in 'Filename'. This DBI-file will be placed in the same directory/map
of the exefile. This is the place where the all the other routines
will look for it too. So distribute them along with the executable.

Version : String
-------
You can use the versionnumber of the exe.
This versionnumber is stored in the DBI-file for information
purposes only. The component will not check this versionnumber.

Programname : String
-----------
Name of the program. This is also stored in the DBI-file for
information purposes only.

Prgbar : TProgressbar
------
If used the component will use this progressbar to inform about
the progress of the buiding/reindexing and converting. If not used
make it NIL.

Busy : TLabel
----
If used the component will use this label to inform you about what
he is doing. If not used make it NIL.

------------------------------

Compatible with Delphi 4 only.

Comments/Bugs/Suggestions can be send to

Freddy_Biets@Hotmail.com

Known Problems
--------------

None at this time.


Distribution
------------

BFC_FileCheck may be freely distributed via web pages, FTP sites, 
BBS and conferencing systems or on CD-ROM in unaltered zip format, 
but no charge may be made other than reasonable media 
or bandwidth cost.  

BFC-FileCheck may be used freely in Delphi applications, 
but it would be polite to mention in the documentation that your 
application is using "BFC_FileCheck from Freddy Biets".

I would appreciate an email stating that you are using the component,
and what you think of it.
That way, i can see how many ppl are using it. If not many ppl use it,
i won't be putting a lot of work in it in the future.
