[fpc-pascal]Bug with a record type?
Johann Glaser
Johann.Glaser at gmx.at
Mon Feb 19 18:36:54 CET 2001
Hi!
> DataFromFile : array [1..MAX_LINES] of ^DataRecord;
>
> if DataFromFile [CurrentLine].Display then
You declared DataFromFile as a record of Pointers (^DataRecord), but you
try to access it as it was an array of record. Write the above line as:
if DataFromFile [CurrentLine]^.Display then
so i should work.
Bye
Hansi
--
Johann Glaser <Johann.Glaser at gmx.at>
Vienna University of Technology
Electrical Engineering
http://stud3.tuwien.ac.at/~e9825761/index.html
More information about the fpc-pascal
mailing list