Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Apr : Member offset in record by name
| Subject: | Member offset in record by name |
| Posted by: | "Daniel" (dani..@borland.com) |
| Date: | Tue, 24 Apr 2007 08:59:53 |
Hi,
Is there any way that I can get member offset in a record by its name?
EX:
type
myRec=record
a:integer;
b:byte;
end;
Member offset of b will be 4. Because the sequence of b may changed
later someday. It will be inconvenient to revise source all the time.
Thanks,
Daniel