Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!bionet!agate!usenet.ins.cwru.edu!ysub!psuvm!dbh106 From: DBH106@psuvm.psu.edu Newsgroups: comp.lang.pascal Subject: Re: Variable sized arrays? Message-ID: <91111.175832DBH106@psuvm.psu.edu> Date: 21 Apr 91 21:58:31 GMT References: <1991Apr21.083641.18707@usenet.ins.cwru.edu> Organization: Penn State University Lines: 21 Just make a linked list. Then it is simple to access th Nth element in the list. function varray (list : listtype; n : integer) : nodetype; var temp : pointertype; k : integer; begin new(temp); temp := list; for k := 2 to n do temp := temp.next; varray := temp.data; end; Hope this helps. In my Comp Sci class, we implemented a linked list. I have a Unit that I think is cool. It includes this function (or something very similar. If anyone is interested, I may post it after finals in three weeks. Dan Harter DBH106@psuvm.psu.edu