var
    AMyRec: TMyRec;
    ASize: Integer;
begin
    ASize := SizeOf(AMyRec.Str3); // This should work
end;
 
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

Reply via email to