comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: text_io and grid printing
Date: Thu, 17 May 2018 21:57:04 +0300
Date: 2018-05-17T21:57:04+03:00	[thread overview]
Message-ID: <fm61k1FpurjU1@mid.individual.net> (raw)
In-Reply-To: <pdkbfi$uih$2@dont-email.me>

On 18-05-17 19:43 , Jeffrey R. Carter wrote:
> On 05/17/2018 04:51 PM, Mehdi Saada wrote:
>> I wanted to use set_col and set_line to print things as in a grid, (to
>> print a matrix) but it seems I was wrong ?
>> Set_Col (1); Put ("1"); Set_Col (2); Put ("2"); Set_Col (3); Put ("3");
>> Gives "123"
>> but Set_Col (2); Put ("2"); Set_Col (1); Put ("1"); Set_Col (3); Put
>> ("3");
>> gives
>>   2
>> 1 3
>
> It's probably best to forget that Text_IO has those operations.

I find Set_Col convenient for simple tabular output, even if it has to 
be used in increasing column order. But very weak compared to eg. HTML 
tables, of course. I don't remember ever using Set_Line.

HTML output is a good compromise, IMO. I often use the XML EZ_Out 
package from www.mckae.com. But it, too, requires the program to 
generate table cells in left-to-right, top-down order.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
       .      @       .


      reply	other threads:[~2018-05-17 18:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-17 14:51 text_io and grid printing Mehdi Saada
2018-05-17 15:01 ` Mehdi Saada
2018-05-17 15:20 ` J-P. Rosen
2018-05-17 15:55 ` Dmitry A. Kazakov
2018-05-17 16:14 ` Mehdi Saada
2018-05-17 16:24   ` Dmitry A. Kazakov
2018-05-17 17:24     ` Mehdi Saada
2018-05-17 18:22       ` Dmitry A. Kazakov
2018-05-17 16:43 ` Jeffrey R. Carter
2018-05-17 18:57   ` Niklas Holsti [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox