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

Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 3680
Number of posts: 12858

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 ?




 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 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.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.