[futurebasic] Re: [FB] Text Columns

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1999 : Group Archive : Group : All Groups

From: Martin Fitzgibbons <rush@...>
Date: Fri, 08 Oct 1999 09:41:19 +1000

Robert Purves wrote:

> >How do you save a file that has a list of words in columns so that when
> >you open it in another program such as Simpletext the column maintain
> >their appearance as they do on the printer and screen.
> >
> >I have tried using Tabs, Spaces, setting a monospaced font prior to
> >saving etc without success
> As an addition to this thread, there is a simple solution that works when
> you intend to open the file in a spreadsheet or a word processor. Insert
> explicit tab characters  CHR$(9)  between the columns:
> DIM j
> OPEN "O",1,"test"
> PRINT #1, "n"  CHR$(9) "n^2"  CHR$(9)  "n^3"
> FOR j=1 TO 10
>  PRINT #1, j  CHR$(9) j*j  CHR$(9)  j*j*j
> NEXT j
> In a spreadsheet this will give three columns. It is similar in a word
> processor with tab stops but not, alas, in SimpleText.

This doesn't really work in a WP, if the words are too long in one column it
goes past the next tab spacing and still doesn't line up. So you really have
to pad it with spaces first.