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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,28998cd551b69db0,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-28 18:57:43 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!newsread.com!newsstand.newsread.com!POSTED.monger.newsread.com!not-for-mail From: Peter C. Chapin Newsgroups: comp.lang.ada Subject: Controlling width of strings during Put operation? Message-ID: Organization: Kelsey Mountain Software X-Newsreader: MicroPlanet Gravity v2.50 Date: Mon, 29 Dec 2003 02:57:40 GMT NNTP-Posting-Host: 216.114.161.211 X-Complaints-To: Abuse Role , We Care X-Trace: monger.newsread.com 1072666660 216.114.161.211 (Sun, 28 Dec 2003 21:57:40 EST) NNTP-Posting-Date: Sun, 28 Dec 2003 21:57:40 EST Xref: archiver1.google.com comp.lang.ada:3909 Date: 2003-12-29T02:57:40+00:00 List-Id: Hello! I'm trying to print out a nice table of results using the standard IO packages. I can print the table rows fairly nicely. I see that the Put procedure in Integer_IO takes a Width parameter that is defaulted to Num'Width (Num being the type used to instantiate Integer_IO). That is fine. In fact, it's good. My issue is: how do I best print the table headers? I could certainly play around with spaces until I got good looking results but that seems fragile and inelegant. I'd rather set a field width for each header based on the Num'Width of the numeric type in the column below that header. That way if I change the type of one of the columns, the headers have a prayer of still lining up without me fiddling with them again. My problem is that I don't see a Put procedure that allows me to specify a field width when I print a string. Do I have to "manually" prepare my own header strings with the appropriate number of padding spaces? Is there an easy way to do that? Thanks! Peter