I have been reading fixed length records from a file using:
Read(AFileName, ARecordName);
I wanted to convert the record to a class so it could have methods so I
changed the definition from something like:
TMyRecordType = record
field1: array[1..3] of char;
field2: array[1..175] of char;
end;
to:
TMyRecordType = class
//I might have put 'private' here
field1: array[1..3] of char;
field2: array[1..175] of char;
end;
At this point, Read(AFileName, ARecordName) didn't seem to cause any
problems, except that it field1 is always [#0, #0, #0] and field 2 similarly
empty. Am I on the wrong track?
Wayne
---------------------------------------------------------------------------
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"