Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!jdevoto From: jdevoto@Apple.COM (Jeanne A. E. DeVoto) Newsgroups: comp.sys.mac.hypercard Subject: Re: Need help with formatting text into columns Summary: tabs Keywords: PLEASE READ ON! Message-ID: <32649@apple.Apple.COM> Date: 24 Jun 89 06:32:58 GMT References: <1339@atux01.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 33 In article <1339@atux01.UUCP> jlc@atux01.UUCP (J. Collymore) writes: >I REALLY need to find a way to format data into a COLUMNS that will be >printed out as a file. >[ . . . ] >What I'd LIKE to get is: > >This is line 1 This is line 1 This is line 1 This is line 1 >This is line 1 This is line 1 This is line 1 This is line 1 >This is line 1 THis is line 1 ... etc. >[ . . . ] >THerefore, I really want to make 3 columns and have the text left justified >within each column. It depends on what sort of file you're exporting to. If it's a word-processor file, the solution may be rather simple: put tabs between the columns. on getMyData repeat with x = 1 to the number of cards put field 1 & tab & field 2 & tab & field 3 into line x of myVar end repeat open file "foo" write myVar to file "foo" close file "foo" print "foo" with "My Word Processor" end getData Something like that. This will work if the destination program (word processor, database, etc) recognizes tabs and will set them up for you in a new file. ====== jeanne a. e. devoto ================================================= Usenet: jdevoto@apple.com | You may not distribute this article under a jdevoto@well.UUCP | compilation copyright without my permission.