Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!psuvm!cunyvm!byuvm!byuvax!taylorj From: taylorj@yvax.byu.edu Newsgroups: comp.sys.mac.hypercard Subject: Re: Pasting text with tabs into a field: How is it done? Message-ID: <1636taylorj@yvax.byu.edu> Date: 5 Oct 90 22:06:36 GMT Lines: 20 In <8561@milton.u.washington.edu>, bjornl@milton.u.washington.edu (Bjorn Levidow) writes: >I'm trying to use the FileToField XCMD in the Dartmouth 3.1 collection >to put a text field with tab in it into a field. The problem is that >all of the tabs get stripped out and I'm left with one long line of data. >I'd like to be able to replace the tabs with spaces or commas if possible. >I've tried to write a TabKey handler in the field, but that produces some >strange results. Any and all help would be appreciated. Thanks in advance. HyperCard automatically strips all tabs from fields, but it wont bother them if they're in a variable. So the only way you can do anything with tabs is to change them to something else BEFORE you put the text in a field. Since the FileToField XCMD goes straight from the file to the field it is useless if you want to handle special characters. I suggest you use the script Jeanne posted. Jim Taylor Microcomputer Support for Curriculum | Brigham Young University | Bitnet: taylorj@byuvax.bitnet 101 HRCB, Provo, UT 84602 | Internet: taylorj@yvax.byu.edu