Export problem

Kenneth Brody kenbrody at bestweb.net
Fri Feb 9 09:13:35 PST 2007


Quoting George Simon (Fri, 9 Feb 2007 11:46:59 -0500):
[...]
> >> I don't know if the code below would work, it depends on how filePro
> >> selects the next record to be used from the pool of available record
> >> numbers.  Ken?
> >>[... if lookup to record 1 fails ...]
> >> If:
> >> Then:	lookup filename r=free -e
> >> If: filename(@rn) ne rn
> >> Then: delete filename; goto ADDREC1
> >> If:
> >> Then: lookup - r=rn -e
> >> If:
> >> Then: return
>
> >> The lookup-free will get the first record off of the freechain,
> >> if any.  There is no guarantee about the order of the records on
> >> the freechain.
>
> But, if the freechain reads:
> 25, 32, 14, 1, 30, 7, ...
> Will I get to record 1 after deleting the first 3 records or will those
> records go back to the beginning of the freechain?

What do you mean "after deleting the first 3 records"?  If those
records are on the freechain, they're already deleted (or never
used in the first place).  Do you mean add records and then
delete them?  As I recall the freechain is in LIFO order, so you
will get the last record you deleted.

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list