Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!charon!hydra.unm.edu!stone From: stone@hydra.unm.edu (Andrew Stone CS.DEPT) Newsgroups: comp.sys.mac.hypercard Subject: Re: columns and printing scrolling fields Keywords: Printfield XCMD, writing tabs Message-ID: <4316@charon.unm.edu> Date: 30 Jan 89 23:58:38 GMT References: <8881@nlm-mcs.arpa> Sender: root@charon.unm.edu Reply-To: stone@hydra.unm.edu.UUCP (Andrew Stone CS.DEPT) Organization: University of New Mexico, Albuquerque, NM Lines: 37 In article <8881@nlm-mcs.arpa> garl@nlm-mcs.arpa (Gary Letourneau) writes: > >I am looking for information on how to do the following 2 things >in hypercard: > > 1. Print the contents of a scrolling text field to a printer. Get the Printfield XCMD from Dartmouth, it allows laser fonts, etc. > 2. Format columns of data contained in scrolling text fields into > 'neat' columns. > If you write your columns of data with a comma between items, then you can export your data to a tab delineated text file as follows: on myTabexport fname open file fname -- use XFCN filename for robustness repeat with i = 1 to the number of lines in field "data" repeat with j = 1 to the number of items in line i of field "data" write item j of line i of field "data" & tab to file fname end repeat write return to file fname end repeat close file fname end myTabexport This file could be opened by Excel and the data manipulated and printed, or by a word processor and printed. Hope this helps. andrew ||<<++>>||<<-->>||<<==>>||<<++>>||<>||<<++>>||<<-->>||<<==>>||<<++>>|| || || || || Andrew Stone ?? 2 + 2 = 5; || || stone@hydra.unm.edu <> for sufficiently large 2 || || || || ||<<++>>||<<-->>||<<==>>||<<++>>||<>||<<++>>||<<-->>||<<==>>||<<++>>||