From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7911c453055ce33b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-08 13:13:37 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: weird compilation error... Date: 08 Jan 2004 16:13:34 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1073596414 11438 192.74.137.185 (8 Jan 2004 21:13:34 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 8 Jan 2004 21:13:34 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:4230 Date: 2004-01-08T16:13:34-05:00 List-Id: mmq_2002@onetel.net.uk (Qas) writes: > now the compilation error is this: > > search1.adb:33:14: expected type "Key_Array" defined at line 16 > search1.adb:33:14: found type "Standard.String" > > now what does it mean by expected Key_array because as far as i can > understand the key_array is a string array. or are string arrays not > possible? if theyre not then will a record work? An array-of-string is not a string. You need to count the line numbers as you read them in, and assign into each component separately. By the way, type String is a pain, because each String is fixed length. And you can't have an array of different-length Strings. Your program will be more flexible and easier to write if you use an Unbounded_String instead. - Bob