Vote UpVote

How to get size of adjacent record’s fields correctly?

The Programming Works – Suppose we have two record types TRecA and TRecB declared as shown below; in a sense the TRecB type is ‘inherited’ from TRecA. The goal is to write a general method which clears all TRecB fields which are not ‘inherited’ from TRecA. The code below propose 3 candidate solutions TRecB.ClearX: type PRecA = ^TRecA; TRecA = record FieldA1: LongWord; FieldA2: Byte; end; PRecB = ^TRecB; TRecB = record FieldA1: LongWord; FieldA2: Byte; FieldB1: Word; FieldB2: LongInt; FieldB3: ...
Favorite? Off-Topic? Serg @ 2015-01-03 13:51


Visits: 634
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)