For Programmers: Free Programming Magazines  


Home > Archive > APL > June 2006 > Re: FMT usage question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: FMT usage question
Randy MacDonald

2006-06-29, 6:56 pm

"kitt" <shayat@alumni.uwaterloo.ca> wrote in news:1151531013.168237.95910
This seemed to work:

'4A1,X1'{quad}fmt ,[.5]{each}'ABC' 'DEF' 'GHI' 'JKL' 'MNOP'

Leaving out the ,[.5]{each} was what gave you the columns.

The 4 is, of course, the length of the longest item, so it may need to
change for different arguments.

Your spacing doesn't seem to be consistent, so I'm not sure how important
spacing is to you. If you want more spaces, X2 wold give you another
space.


@d56g2000cwd.googlegroups.com:

> Hi
>
> I'm hoping someone can help me out -- I'm trying to format column
> headings using the []FMT command.
>
> Basically, I want a line that will look like
> ABC DEF GHI JKL MNOP
>
> However I can't seem to make that happen...I've tried a number of
> times, but I keep getting output that looks like
> A D G J M
> B E H K N
> C F I L O
> P
>
> Can anyone help me out with how to use the []FMT command for this
> purpose?
> I've searched the archive here, and tried various reference books. None
> of them have been useful thus far.
>
> Thanks in advance!
>




--
------------------------------------------------------------------------
|\/| Randy A MacDonald | APL: If you can say it, it's done.. (ram)
|/\| ramacd@nbnet.nb.ca |
|\ | |If you cannot describe what you are doing
BSc(Math) UNBF'83 žas a process, you don't know what you're doing.
Sapere Aude | - W. E. Deming
Natural Born APL'er | Demo website: http://156.34.73.214/
-----------------------------------------------------(INTP)----{ gnat }-
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com