Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!cs.utexas.edu!uunet!portal!cup.portal.com!R_Tim_Coslet From: R_Tim_Coslet@cup.portal.com Newsgroups: comp.lang.pascal Subject: Re: Pointers / Linked lists with files.. Message-ID: <18357@cup.portal.com> Date: 14 May 89 22:08:56 GMT References: <5708@cs.Buffalo.EDU> <1389@bucket.UUCP> <3377@westfort.UUCP> Organization: The Portal System (TM) Lines: 40 In Article: <3377@westfort.UUCP> dragon@westfort.UUCP (The Mystic) writes... > In one of my programs, I have need for several variables which are >diminsioned to an array of 100, which are declared under a Record Type.. When >I define the record and the file name in my VARS section, I'm told the >structure is too large, then when I add the mb:array[1..50] of mbrec (Which I >also need all 50 of the array), I'm told that there are too many variables.. >Assumidly the only way past this is to use the pointers/linked lists with my >record, yet I keep runnito problems doing such.. Here's what my section of >code looks like..: > >Type >mbrec=record > t:array[1..100] of string[30]; > f:array[1..100] of string[25]; > tpc:array[1..100] of string[20]; > dte:array[1..100] of string[10]; > tme:array[1..100] of string[8]; > num:array[1..100] of integer; > bnm:array[1..50] of string[20]; > mgs:integer; end {mbrec record}; { I think you forgot this line } > >Var > mb:array[1..50] of mbrec; > fm:file of mbrec; > > Any help in prodding me in the right direction? Thanks... You CAN'T be SERIOUS!!! :-) Your mbrec takes up over 10K of memory!!!! and the array of 50 of these will require over half a MEGA BYTE of memory!!!! What kind of computer are you expecting to run this on???? Can't you keep some of the data in the file? R. Tim Coslet Usenet: R_Tim_Coslet@cup.portal.com BIX: r.tim_coslet