Cleanup question

Bob Stockler bob at trebor.iglou.com
Wed May 26 10:47:01 PDT 2004


On Tue, Mar 18, 2003 at 03:13:25PM -0500, Jay R. Ashworth wrote:
| On Tue, Mar 18, 2003 at 12:31:26PM -0500, Bob Stockler wrote:
| > file with an Alien file with record length equal to
| > the target file's filePro record length + 20.  Then
| > move through that Alien file in record number order.
| > On landing on an empty record do a lookup by record
| > number to records later in the file until an active,
| > used one is found, then swap the two records.
| 
| <moron type="inattentive">
| But, Bob; I always thought that the key file had a fixed size header
| in front of the *entire file*, in addition to the one on *each record*.
| 
| No?
| 
| Just a record 0 to handle housekeeping for the file?
| </moron>

I forget what we were talking about back in March, but, yes
an Alien file overlaying a real file's "key" will be out of
step by 1 record with the record numbers in the "real" file
because of filePro's own record 0 in the "real" file.

But that's easy to account for.  I do it in my "Deflate"
program that moves all empty and/or unused records to the
end of the "real" file.

Bob

-- 
Bob Stockler - bob at trebor.iglou.com
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).


More information about the Filepro-list mailing list