If you have a PH account, you can customize your PH profile.

Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 3714
Number of posts: 12962

This Forum Only
Post New Thread

Report
Record.. Posted by singga on 4 Nov 2009 at 9:07 AM
Hiya.. sorry for toubling you guys again
i would like to ask something about Record:
what can i do to make the field of the record be variable?
var file : string;

begin
   readln(file);
   student.file := 'HA';
end.

thanks you all you guys help ><"
Report
Re: Record.. Posted by Atex on 4 Nov 2009 at 9:12 PM
: Hiya.. sorry for toubling you guys again
: i would like to ask something about Record:
: what can i do to make the field of the record be variable?
:
: var file : string;
: 
: begin
:    readln(file);
:    student.file := 'HA';
: end.
: 
:
: thanks you all you guys help ><"

I'm not sure what mean here...but, all fields of a record are variables of some sort... unless is declared as a const... Could you be more explicit ?




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

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2010 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.
bootstrapLabs Logo A BootstrapLabs project.