Subj : help again please.
To   : Chris Hoppman
From : Jasen Betts
Date : Mon Sep 27 2004 09:17 am

Hello Chris.

26 Sep 04 10:37, you wrote to all:

CH> Does anyone have experance in convertting records from pascal to
CH> delphi?


CH> I have been using packed records and that does work, but if I include
CH> a set in the record it mess's everything up.

CH> aflags = 1..16;
CH> returns
(sizes)
CH> tp     = 3(up to 23)
CH> tp(24-31) = 4
CH> delphi = 4(up to 31)

Hmm. 3 byte bitfields are a horrible invention and I understand why the makers
of delphiwould want to discourage their use.


CH> How might i get past this?

maybe you can use absolute to make the next field overlap the (unused) end of
the set

but that's possibly going to mess other stuff up.

otherwise you're going to have to read the data into the delphi fields one
field at a time. or read it into a buffer (eg array of byte) and copy it across
leaving gaps where the extra "set" bytes occur,

but check the documentation first - there might be some sort of a compatibility
mode you can turn on.

Jasen
--- GoldED+/LNX 1.1.4.7
* Origin:  (3:640/1042)