xfer problems sco-sun

Kenneth Brody kenbrody at bestweb.net
Fri Apr 2 05:38:58 PST 2004


"Jean-Pierre A. Radley" wrote:
> 
> Bill Vermillion propounded (on Thu, Apr 01, 2004 at 08:18:23PM -0500):
[...]
> | Just split the each record into two pieces, swap the heard, and add
> | the rest.  I did something similar a very long time ago before the
> | xfer program existed.  As I recall it's just the first 20 bytes
> | that need to be swapped.
> 
> Would that it were that simple: it's the twenty byte header at the
> beginning *of each record* that needs bytes swapped.

Well, he did say (at leat I think he said) to swap the header of
each record.  (Though you need to not swap the first two bytes, as
they are single bytes and not a 2-byte word.  And, don't forget to
take care of deleted record differently, as they have a different
header structure which includes 4-byte words.)

And, don't forget about the headers of screens, reports, and indexes.
(But don't swap the entries in the header that are single bytes, and
not 2-byte words.  And don't forget to handle the 4-byte-words.)

-- 

+---------+----------------------------------+-----------------------------+
| Kenneth |     kenbrody at spamcop.net      | "The opinions expressed     |
|    J.   |    http://www.hvcomputer.com     |  herein are not necessarily |
|  Brody  |      http://www.fptech.com       |  those of fP Technologies." |
+---------+----------------------------------+-----------------------------+



More information about the Filepro-list mailing list