Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!mcnc!ecsgate!ecsvax!dlugose From: dlugose@uncecs.edu (Dan Dlugose) Newsgroups: comp.sys.mac.hypercard Subject: Re: Address Stack, Hypercard V1 Keywords: Labels Message-ID: <1991Jan30.180751.24455@uncecs.edu> Date: 30 Jan 91 18:07:51 GMT References: <11656@pt.cs.cmu.edu> Organization: UNC Educational Computing Service Lines: 35 In article <11656@pt.cs.cmu.edu> michelle@PROOF.ERGO.CS.CMU.EDU (Michelle Jackson) writes: >I have a microsoft word file with names and addresses set up in columns >horizontally across the page, with fields separated by tabs. Is there a >way to transfer these names and addresses to hypercard address stack to avoid >retying them? Any help greatly appreciated. > >Michelle Save the file as text only. If you want each person on a new line on the same card, arrange fields left to right, one for each column, then: open file f put 1 into lineNo put 1 into columnNo repeat read from file f until tab, return if it is empty then exit repeat put it into line lineNo of field columnNo if last char of it is return then put 1 into columnNo add 1 to lineNo else add 1 to columnNo end if end repeat If you want a card for each person, then instead of keeping track of linenumbers, when a return character is read, domenu "new card" -- Dan Dlugose Internet: dlugose@uncecs.edu UNC Educational Computing Service Box 12035, Research Triangle Park, NC 27709-2035