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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,68f318e142f40431 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-12 16:11:00 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!hookup!news.mathworks.com!noc.near.net!inmet!dsd!stt From: stt@dsd.camb.inmet.com (Tucker Taft) Subject: Re: GNAT-Problem / Please Help !! Message-ID: Sender: news@inmet.camb.inmet.com Organization: Intermetrics, Inc. References: <39lbil$euf@tucs6.rz.tu-cottbus.de> Date: Sat, 12 Nov 1994 21:31:29 GMT Date: 1994-11-12T21:31:29+00:00 List-Id: In article <39lbil$euf@tucs6.rz.tu-cottbus.de>, Andreas Krohn wrote: >I've a problem with the Set_Col() and Set_Line() Functions. >Everytime I use a number the call works, but when i use a variable >in the call the compiler says "invalid parameter list in call". >Could anybody help an ada-beginner with the problem ? You probably have a type mismatch. Set_Col and Set_Line both expect parameters of subtype Text_IO.Positive_Count. When you use numeric literals, you don't need to worry about the particular integer type. But when you use a variable, you need to declare it to be of the right (sub)type, or convert it on use. For example, the following should work: C : Text_IO.Positive_Count; ... C := 22; Text_IO.Set_Col(C); Alternatively, you can write: X : Integer; ... X := 22; Text_IO.Set_Col(Text_IO.Positive_Count(X)); The former is methodologically preferable, in general, because it makes it clear that "C" represents a count to be used with Text_IO column and line operations. -Tucker Taft stt@inmet.com Intermetrics, Inc. Cambridge, MA 02138 The problem is that > >Thank you. >