Originally posted by Tom Hanlin:
The contents of files opened for BINARY or RANDOM access have no
significance to PB/DOS. As far as the compiler is concerned, the
contents are simply raw data.
The contents of files opened for BINARY or RANDOM access have no
significance to PB/DOS. As far as the compiler is concerned, the
contents are simply raw data.
The mystery of the two 'extra' bytes at the end of the random
access record was solved when I went back and looked at the
source code again. They are there to store the Dr.'s "chart
number" for each patient. They aren't "random", they are
sequentially generated (but because the records are sorted
alphabetically by last name, that field appears to be random).
A phone call to Florida helped straighten out my
misunderstanding, so I looked further into the source and there
it was, practically jumping up and down.
I'll take an order of humble pie now... with coffee...
At least the ASCII/HEX editor let me strip out the record that
was trashed, and insert another 'fresh' record (to keep it in
balance). I'll probably get to find out tomorrow if it works
as it should.
Kurt Schultz
------------------
Leave a comment: