michelle@PROOF.ERGO.CS.CMU.EDU (Michelle Jackson) (01/24/91)
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
dlugose@uncecs.edu (Dan Dlugose) (01/31/91)
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