Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

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

Report
Error 1 Posted by Actor on 12 Feb 2012 at 11:47 AM
The first error, in red, happens because the compiler does not know what Memberdatabase is. The compiler is a "single pass" compiler. It does not look ahead.
Program schoolSBA;
{This program was written by Michael Jarvis, a student of the Saint Mary's Academy.}

uses crt, dos;

Type

   Databasefiletype = file of Memberdatabase;{THIS IS WHERE THE ERRORS START..ENLIGHTENING ME PLEASE}
   
   Memberdatabase = record
      DDCFILE,
      DPIfile,
      DSGOfile: DatabasefileTYPE;
      Databasefiletype : file of Memberdatabase;

This declaration needs to be made after you have declared Memberdatabase.
Program schoolSBA;
{This program was written by Michael Jarvis, a student of the Saint Mary's Academy.}

uses crt, dos;

Type
   
   Memberdatabase = record
      DDCFILE,
      DPIfile,
      DSGOfile: DatabasefileTYPE;
      Databasefiletype : file of Memberdatabase;
   
   MemberDatabaseDDC = record {declaration of record}
      Member_ID : string[10];
      Member_Name : String[30];
      Member_TicketPayment : integer;
      Advert : string;
   end;
   
   MemberDatabaseDPI=record
      Member_ID  :  string[10];
      Member_Name : String[30];
      Member_TicketPayment : integer;
   end;
   
   MemberDatabaseDSGO = record
      Member_ID  :  string[10];
      Member_Name : String[30];
      Member_TicketPayment : integer;
   end;

   Databasefiletype = file of Memberdatabase;

Thread Tree
pampaz Help(Project crisis) on 9 Jan 2012 at 12:51 PM
Actor Re: Help(Project crisis) on 13 Jan 2012 at 9:08 PM
pampaz Re: Help(Project crisis) on 14 Jan 2012 at 3:37 PM
pampaz Re: Help(Project crisis) on 14 Jan 2012 at 3:38 PM
Actor Re: Help(Project crisis) on 16 Jan 2012 at 9:38 AM
pampaz Re: Help(Project crisis) on 19 Jan 2012 at 12:41 PM
Actor Re: Help(Project crisis) on 21 Jan 2012 at 10:35 PM
Actor Re: Help(Project crisis) on 22 Jan 2012 at 8:35 PM
Actor Re: Help(Project crisis) on 22 Jan 2012 at 10:31 PM
Actor Re: Help(Project crisis) on 24 Jan 2012 at 7:58 PM
pampaz Re: Help(Project crisis) on 26 Jan 2012 at 2:59 PM
Actor Re: Help(Project crisis) on 27 Jan 2012 at 12:26 PM
Actor Re: Help(Project crisis) on 1 Feb 2012 at 7:28 PM
pampaz Re: Help(Project crisis) on 26 Jan 2012 at 3:06 PM
Actor Re: Help(Project crisis) on 1 Feb 2012 at 7:35 PM
Actor Re: Help(Project crisis) on 24 Jan 2012 at 8:01 PM
Actor Getting rid of recursive calls on 2 Feb 2012 at 10:39 PM
pampaz Re: Getting rid of recursive calls on 4 Feb 2012 at 7:58 PM
pampaz02 Re: Getting rid of recursive calls on 7 Feb 2012 at 5:43 PM
pampaz02 Re: Getting rid of recursive calls on 7 Feb 2012 at 5:46 PM
Actor Two examples on 8 Feb 2012 at 4:24 PM
Actor Toward simpler, more elegant code on 6 Feb 2012 at 12:26 AM
Actor Grand Totals on 6 Feb 2012 at 6:53 PM
pampaz02 Re: Grand Totals on 10 Feb 2012 at 5:02 PM
Actor Your call on 11 Feb 2012 at 1:09 PM
pampaz02 Re: Your call on 12 Feb 2012 at 6:35 PM
Actor Re: Your call on 12 Feb 2012 at 7:50 PM
pampaz02 Re: Your call on 13 Feb 2012 at 12:05 PM
Actor Weather on 12 Feb 2012 at 7:59 PM
Actor When is this project due? on 12 Feb 2012 at 8:07 PM
Actor This compiles on 11 Feb 2012 at 5:10 PM
Actor Error 1 on 12 Feb 2012 at 11:47 AM
Actor Error 2 on 12 Feb 2012 at 12:17 PM
Actor Error 3 on 12 Feb 2012 at 1:46 PM
Actor Error 4 on 12 Feb 2012 at 2:54 PM
Actor Error 5 on 12 Feb 2012 at 7:15 PM
Actor Error 6 on 12 Feb 2012 at 7:27 PM
Actor Error 7 on 13 Feb 2012 at 10:13 AM
Actor Two changes on 13 Feb 2012 at 12:10 PM
Actor Testing on 14 Feb 2012 at 11:41 AM
Actor21 Re: Grand Totals on 15 Feb 2012 at 4:47 PM
Actor21 Viewing with one procedure on 15 Feb 2012 at 9:29 PM
pampaz02 Re: Viewing with one procedure on 16 Feb 2012 at 11:41 AM
pampaz02 Re: Grand Totals on 10 Feb 2012 at 5:04 PM
pampaz02 Re: Grand Totals on 10 Feb 2012 at 5:06 PM
Actor goto on 10 Feb 2012 at 4:37 PM
pampaz02 Re: goto on 10 Feb 2012 at 6:49 PM
pampaz02 Re: goto on 10 Feb 2012 at 6:51 PM



 

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.