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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e2c3d890be813022,start X-Google-Attributes: gid103376,public From: canada_bass@my-deja.com Subject: A Text_IO fixes it? Date: 1999/12/20 Message-ID: <83m49f$f9j$1@nnrp1.deja.com>#1/1 X-Deja-AN: 562969271 X-Http-Proxy: 1.1 x36.deja.com:80 (Squid/1.1.22) for client 131.6.189.59 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Dec 20 19:16:04 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt; Air Combat Command Approved) Date: 1999-12-20T00:00:00+00:00 List-Id: I've been having a problem with accessing an array of records. This array is declared in the package body and is never changed inside the package (not a constant but should be). When I try to read one fields of a record (which is an enumerated from another package) I get the incorrect data(consistently). Now, here is where I got confused. I can do a Text_IO.Put_Line (with a 'Image) of the data that I am trying to access and it will display the wrong value, BUT the statements following the Put_Line will work correctly. So I figure that I would put the same Put_Line two times in a row. The first time it displays the incorrect data and the second time it displays the correct data! \ This is without any other procedures calling this one or manipulating the variable that is passed to this procedure(the index of the array). I've tested various ideas but I still can't seem to come up with a solution. Has anyone ever encountered such a thing? Sent via Deja.com http://www.deja.com/ Before you buy.