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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,819faa6c1dfaa502,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-07 10:12:09 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: devine@linuxmail.org (devine) Newsgroups: comp.lang.ada Subject: Array help needed.. Date: 7 May 2002 10:12:08 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 24.68.22.66 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1020791529 14445 127.0.0.1 (7 May 2002 17:12:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 May 2002 17:12:09 GMT Xref: archiver1.google.com comp.lang.ada:23655 Date: 2002-05-07T17:12:09+00:00 List-Id: Hi. Kinda of a newbie to ada. I have a array setup into which I want to put words. I keep getting a standard.integer error for this line: Ada.Text_IO.Put(Item => Found(Word)), can someone please explain why I am getting that error and how I can fix it? I excluded the open file code. Char : Character Found : String(1..10) TYPE CharArray IS ARRAY (1..80) of Character; Word : CharArray; LOOP EXIT WHEN Ada.Text_IO.End_Of_File(InData); LOOP Ada.Text_IO.Get(File => InData, Item => Char); IF Char IN 'a'..'z' THEN Ada.Text_IO.Put(Item => Found(Word)); END IF; END LOOP; END LOOP; Thanks.