Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
readln(record.field); Posted by Mr. El Moe on 21 Dec 2001 at 11:33 PM
Here is some sample code... but I get an error and it's been too long since I've delt with records to figure what I'm doing wrong.


Type
..rooms = Record
....name : String[20];
....descpt1, descpt2 : String;
..end;

Var
..fname : file;

Begin
..assign(fname, 'rooms.dat');
..readln(rooms.name); <---- This is were I get my error, it says it is expecting a '(' after the word 'rooms'. I'm attempting to read input to store into rooms.name... what's going on here?? What am I missing?
end;


Any help will be appreciated... thanks!

Mr. El Moe
Thread Tree
Mr. El Moe readln(record.field); on 21 Dec 2001 at 11:33 PM
DexterMagnific Re: readln(record.field); on 22 Dec 2001 at 2:18 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.