Thanks Paul, but this
would just give me the size of the array, I needed the offset from the start
of the record, Chris’ answer worked fine.
Thank
you
Jason
-----Original
Message-----
From: Paul
Mckenzie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 24 October 2002 8:45
a.m.
To: Multiple recipients
of list delphi
Subject: Re:
[DUG]: offset of item in record type
ASize :=
SizeOf(AMyRec.Str3); // This should work
Regards
Paul McKenzie
Analyst
Programmer
SMSS ltd.
----- Original Message -----
Sent:
Wednesday, October 23, 2002 4:38 PM
Subject: [DUG]:
offset of item in record type
I have a record type
object
Type
MyRec = record
Str1: array[0..25] of char;
Str2: array[0..55] of char;
Int: Integer;
Str3: array[0..50] of char;
End;
How can I find the size offset
of Str3? Is there a nice Delphi command for this?
Jason