home *** CD-ROM | disk | FTP | other *** search
-
- This handout addresses some problems which have been reported by
- users of the Turbo Pascal DataBase ToolBox version 4.0
-
- Correction
-
- When accessing an Index File that allows duplicate keys and has
- greater than 32K records, the Index Key routines, FindKey and
- SearchKey will be unsuccessful in finding keys for records past
- 32K. By making the following changes to TACCESS.PAS, this
- problem will be corrected. Please make sure that any changes are
- made to a backup copy of the Database Toolbox, not the original.
-
- 1. In the TaCompKeys procedure change the old code,
-
- begin
- if TaKeyStr(K1) = TaKeyStr(K2) then
- if Dup then
- TaCompKeys := DR1 - DR2
- else TaCompKeys := 0
- .
- .
-
- to look as follows:
-
- begin
- if TaKeyStr(K1) = TaKeyStr(K2) then
- if Dup then
- begin
- if DR1 > DR2 then
- TaCompKeys := 1
- else
- TaCompKeys := -1;
- end
- else TaCompKeys := 0
- .
- .
-
- 2. Save the changes to TACCESS.PAS. Call TaBuild for each
- .TYP file to create a new TACCESS.TPU file. Rebuild all Index
- Files.
-
- Recommended Suggestion
-
- Users have reported unusual errors occuring in their DataBase
- ToolBox programs. Many of these errors can be solved by running
- TaBuild with the /W+ option to display the worksheet. The
- worksheet will show that 1,000 records will be the expected size
- of the Data File. It is neccessary that this value be changed to
- reflect the maximum number of records possible for the Data File.
- The data segment overhead for specifying 100,000 records as
- opposed to 1,000 records is approximately 24 bytes additional per
- defined IndexFile.
-
- For existing Data Files, where greater than 1,000 records are
- expected, it is recommended that you build a new TACCESS unit
- using the worksheet to set the maximum number of records. This
- requires that all Index Files be rebuilt.
-