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,71c7addfc8ec82f6 X-Google-Attributes: gid103376,public From: Alfred Hilscher Subject: Re: Command Line arguments Date: 2000/05/31 Message-ID: <3934E948.EDB4B29C@icn.siemens.de>#1/1 X-Deja-AN: 629396941 Content-Transfer-Encoding: 7bit References: <393124B8.846F51E7@mad.servicom.es> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Siemens AG Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-05-31T00:00:00+00:00 List-Id: Pedro Diaz Jimenez wrote: > > Hello all: > > I'm trying to write a program that takes from command line arguments the > name of file to proccess. I use the command_package > > For some reason I get a CONSTRAINT_ERROR when I try to assing Argument( > 2 ) to a string: here is the code > > with ADA.Command_line; > use Ada.Command_Line; > > procedure com_line is > a : String (integer range 1..100); > begin > put( Argument_Count ); > > -- Here is the error: > a := Argument( 2 ); > put_Line( a ); > end prueba; I think your code will not even compile: "procedure com_line .... end prueba;". Mismatching name.