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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,217ce8585deaa093 X-Google-Attributes: gid103376,public From: "Shawn M. Root" Subject: Re: Could you help me debug this please? Date: 1999/05/27 Message-ID: <7iilh0$ndl$1@news.orbitworld.net>#1/1 X-Deja-AN: 482610293 References: <374a318b.1942660@news.ozemail.com.au> Organization: OrbitWorld Network, Inc. X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Newsgroups: comp.lang.ada Date: 1999-05-27T00:00:00+00:00 List-Id: Aaron wrote in message <374a318b.1942660@news.ozemail.com.au>... :I keep getting the error mesage "Statemnt Expected" in line 73 :whenever I try compiling this program. If anyone could help me, I'd be :greatful. : :elsif (Code=migrate) then :(write_data(in_data : out text_io.file_type)); ^-----------------------------------------^ The above is the form for a procedure specification (or nearly so) not a call to that procedure. You should replace "in_data : out text_io.file_type" with the name a variable of type text_io.file_type that you wish to pass to this procedure. Additionally, the outer parentheses around the call to write_data should be removed. For example: if you have a variable declared as In_File : Text_Io.File_Type; then the above two lines of code would look like elsif (Code=migrate) then write_data(In_Data => In_File); If this is an assignment for a class, you should really go see your instructor for additional help. There are other errors lurking in your code that will trip you up later. Good luck. -- Shawn M. Root