Vote UpVote

Answered @ Stackoverflow – on Parsing a record of unknown structure: use classes with published properties and the Delphi streaming mechanism

The Wiert Corner – At Stackoverflow, user AB asked about Delphi: Parsing a record of unknown structure. Basically his question came down to iterating over the fields of a record, then writing out the values to some sort of human readable file, and then reading them back in. His idea was to use INI files, but also needed support for multi-line strings. I suggested to use classes in stead of records, and published properties in stead of fields, then use the Delphi built-in streaming mechanism to stream to/from Delphi dfm files. Normally, Delphi uses dfm files (they have been human readable text files since Delphi ...
Favorite? Off-Topic? jpluimers @ 2009-08-24 10:33


Visits: 506
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
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)