Cool, this worked great, thank you. Jason
-----Original Message----- From: Chris Reynolds [mailto:chrisr@;instantObjects.com] Sent: Wednesday, 23 October 2002 5:31 p.m. To: Multiple recipients of list delphi Subject: Re: [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; > > > > var x :myrec; off :integer; off := integer(@x.str3) - integer(@x); ------------------------------------------------------------------------ --- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/