Posted by DelphiMan on January 28, 2006 In Reply to Re: Problem with untyped files (writing to file) posted by Andrew on
January 28, 2006 TStrings is an object type. If you store something in Desc, Code or Keys, you store the *pointer* to an object -- just a number, the memory address of the object. If you want to store *string* values, you have to declare the record fields as "string" with a defined length. For example: MyRecord = record Of course, in that case most of your file will consist of empty space... Related Articles and Replies
|