Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!fr0c+ From: fr0c+@andrew.cmu.edu (Frank A. Reynolds) Newsgroups: comp.sys.mac.hypercard Subject: Importing Text ????? Message-ID: <4bZ8Mei00WBN821VtW@andrew.cmu.edu> Date: 16 Jan 91 16:58:18 GMT Organization: Hunt Institute, Carnegie Mellon, Pittsburgh, PA Lines: 45 Maybe someone can figure this one out. I'm importing text from a Microsoft Word document saved as text. It has about 3000 names, and data on the names, with tabs between each item. I have only done importing of text to HyperCard as a test before, so I stopped at about 1200 names to see if all the information was be transfered into the right fields (there are 12 fields), everything was fine. So I opened the Word document and remove the names that had been transfered then tried to import the rest. HyperCard begins to import the very 1st name again. I have tried, 1. re-saving the Word document, 2. re-named it, 3. made a copy of the stack removed all the name already imported, and it still starts importing the 1st name again. How can it import something that is not there ???????? What am I missing ? The import script I am using is below. on mouseUp Ask "Which file do you wish to import?" with "XYZportraits" if it is empty then exit mouseUp put it into fileName open file fileName go to last card repeat forever doMenu "New Card" read from file fileName until return if it is empty then go to first card close file fileName exit mouseUp else put tab into last char of it repeat with x=1 to the number of fields put char 1 to offset (tab,it) of it into field x delete last char of field x delete char 1 to offset (tab,it) of it end repeat end repeat end mouseUp